summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-06 00:33:04 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-06 00:33:04 +0000
commit92424a17a65db72779094f5fee52ec1d1d5806b6 (patch)
tree2c2b7aa4e68204b3febe3b232730ac9a6e8d16b1 /config
parentac375dfc90698399795a4d6c02d34e43b30abd28 (diff)
downloadgcc-92424a17a65db72779094f5fee52ec1d1d5806b6.tar.gz
* Makefile.in (BASE_FLAGS_TO_PASS): Don't pass PICFLAG and
PICFLAG_FOR_TARGET. (EXTRA_TARGET_FLAGS): Don't pass PICFLAG_FOR_TARGET. * configure: Emit a definition for the new macro enable_shared into each Makefile. * config/mh-sparcpic (PICFLAG): Define to properly according to current multilib configuration. * config/mt-sparcpic (PICFLAG_FOR_TARGET): Define to properly according to current multilib configuration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/mh-sparcpic2
-rw-r--r--config/mt-sparcpic2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/mh-sparcpic b/config/mh-sparcpic
index 35cf2c8ee4e..f6dbc22e3ca 100644
--- a/config/mh-sparcpic
+++ b/config/mh-sparcpic
@@ -1 +1 @@
-PICFLAG=-fPIC
+PICFLAG=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
diff --git a/config/mt-sparcpic b/config/mt-sparcpic
index 35b8c9e4dc2..fd0ec271afc 100644
--- a/config/mt-sparcpic
+++ b/config/mt-sparcpic
@@ -1 +1 @@
-PICFLAG_FOR_TARGET=-fPIC
+PICFLAG_FOR_TARGET=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`