Makefile.in (BASE_FLAGS_TO_PASS): Don't pass PICFLAG and PICFLAG_FOR_TARGET.
authorManfred Hollstein <manfred@s-direktnet.de>
Fri, 6 Feb 1998 00:33:04 +0000 (00:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 6 Feb 1998 00:33:04 +0000 (17:33 -0700)
        * 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.

From-SVN: r17680

ChangeLog
config/mh-sparcpic
config/mt-sparcpic
configure

index 491a5263ac8362bca5b856752050881143e34bc0..e157714c635d066f7a117afbc1d281d285b57132 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+Fri Feb  6 01:33:52 1998  Manfred Hollstein  <manfred@s-direktnet.de>
+
+       * 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.
+
 Sun Feb  1 02:40:41 1998  Richard Henderson  <rth@cygnus.com>
 
        * Makefile.in (TARGET_CONFIGDIRS): Add libf2c.
index 35cf2c8ee4e34dad2e7c444c15f4b139f8c68009..f6dbc22e3ca8f102c8570600a21f05ea9c96a3c7 100644 (file)
@@ -1 +1 @@
-PICFLAG=-fPIC
+PICFLAG=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
index 35b8c9e4dc2320bc8c12184a31e62df0afd07920..fd0ec271afce11b4764c7c5cb25d2a3db109cce0 100644 (file)
@@ -1 +1 @@
-PICFLAG_FOR_TARGET=-fPIC
+PICFLAG_FOR_TARGET=`case "${LIBCFLAGS} ${LIBCXXFLAGS}" in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
index c821cf6091def059a5ddfb04f824d5068831749b..5421fa753f19b4237a1c67768d028eeddceb5abc 100755 (executable)
--- a/configure
+++ b/configure
@@ -1195,6 +1195,13 @@ EOF
                echo gxx_include_dir = ${with_gxx_include_dir} >> ${Makefile}
            fi
 
+           # record if we want to build shared libs.
+           if test -z "${enable_shared}"; then
+               echo enable_shared = no >> ${Makefile}
+           else
+               echo enable_shared = ${enable_shared} >> ${Makefile}
+           fi
+
             # reset prefix, exec_prefix, srcdir, SUBDIRS, NONSUBDIRS,
             # remove any form feeds.
             if [ -z "${subdirs}" ]; then