Changeset 3117


Ignore:
Timestamp:
Dec 3, 2013 7:58:56 PM (6 years ago)
Author:
tkr
Message:

Adding -Wl--export-all-symbols when building with dependency linking

Location:
ThirdParty/ASL/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/trunk/Makefile.am

    r3096 r3117  
    2929else
    3030libcoinasl_la_LIBADD =
     31libcoinasl_la_LDFLAGS =
    3132endif
    3233
    3334if DEPENDENCY_LINKING
    3435libcoinasl_la_LIBADD += $(ASL_PCLIBS)
     36libcoinasl_la_LDFLAGS += -Wl,--export-all-symbols
    3537endif
    3638
     
    4648$(AMPLSOLVER_A):
    4749        ./compile_MS_ASL
    48        
    4950else
    5051$(AMPLSOLVER_A):
     
    6162          echo "non_pic_object='$$i'" >> $$lofile ; \
    6263        done ; cd ..
    63         $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) linkdir/*.lo $(libcoinasl_la_LIBADD)
     64        $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) linkdir/*.lo $(libcoinasl_la_LIBADD) $(libcoinasl_la_LDFLAGS)
    6465        rm -rf linkdir
    6566
     
    6970          $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) libcoinasl.la "$(DESTDIR)$(libdir)/libcoinasl.la"; \
    7071        fi
    71        
     72
    7273uninstall-local:
    7374        $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcoinasl.la"
  • ThirdParty/ASL/trunk/Makefile.in

    r3096 r3117  
    6464@COIN_CC_IS_CL_FALSE@   $(am__DEPENDENCIES_2)
    6565@DEPENDENCY_LINKING_TRUE@am__append_1 = $(ASL_PCLIBS)
    66 @COIN_CC_IS_CL_FALSE@am__append_2 = libcoinasl.la
     66@DEPENDENCY_LINKING_TRUE@am__append_2 = -Wl,--export-all-symbols
     67@COIN_CC_IS_CL_FALSE@am__append_3 = libcoinasl.la
    6768DIST_COMMON = $(am__configure_deps) $(srcdir)/BuildTools/Makemain.inc \
    6869        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     
    7172        $(thirdpartyinclude_HEADERS) $(top_srcdir)/configure \
    7273        config.guess config.sub depcomp install-sh ltmain.sh missing
    73 @HAVE_EXTERNALS_TRUE@am__append_3 = Dependencies
    74 @HAVE_EXTERNALS_TRUE@am__append_4 = .Dependencies-stamp
     74@HAVE_EXTERNALS_TRUE@am__append_4 = Dependencies
     75@HAVE_EXTERNALS_TRUE@am__append_5 = .Dependencies-stamp
    7576subdir = .
    7677ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    269270target_alias = @target_alias@
    270271AUTOMAKE_OPTIONS = foreign
    271 EXTRA_DIST = get.ASL INSTALL.ASL $(am__append_3)
     272EXTRA_DIST = get.ASL INSTALL.ASL $(am__append_4)
    272273@COIN_CC_IS_CL_TRUE@lib_LTLIBRARIES = libcoinasl.la
    273274@COIN_CC_IS_CL_TRUE@libcoinasl_la_SOURCES =
     
    276277@COIN_CC_IS_CL_TRUE@    $(am__append_1)
    277278@COIN_CC_IS_CL_TRUE@libcoinasl_la_DEPENDENCIES = $(AMPLSOLVER_A)
     279@COIN_CC_IS_CL_FALSE@libcoinasl_la_LDFLAGS = $(am__append_2)
    278280
    279281# This is for libtool
    280 @COIN_CC_IS_CL_TRUE@libcoinasl_la_LDFLAGS = $(LT_LDFLAGS)
     282@COIN_CC_IS_CL_TRUE@libcoinasl_la_LDFLAGS = $(LT_LDFLAGS) \
     283@COIN_CC_IS_CL_TRUE@    $(am__append_2)
    281284
    282285########################################################################
     
    284287########################################################################
    285288compdir = compdir
    286 alltargets = stdio1.h arith.h funcadd0.$(OBJEXT) $(am__append_2)
     289alltargets = stdio1.h arith.h funcadd0.$(OBJEXT) $(am__append_3)
    287290thirdpartyincludedir = $(includedir)/coin/ThirdParty
    288291thirdpartyinclude_HEADERS = \
     
    300303
    301304# Files that are generated and should be cleaned with make distclean
    302 DISTCLEANFILES = $(am__append_4) $(VPATH_DISTCLEANFILES)
     305DISTCLEANFILES = $(am__append_5) $(VPATH_DISTCLEANFILES)
    303306DocFiles = README AUTHORS LICENSE
    304307DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
     
    713716@COIN_CC_IS_CL_TRUE@$(AMPLSOLVER_A):
    714717@COIN_CC_IS_CL_TRUE@    ./compile_MS_ASL
    715 
    716718@COIN_CC_IS_CL_FALSE@$(AMPLSOLVER_A):
    717719@COIN_CC_IS_CL_FALSE@   ./compile_Unix_ASL
     
    727729@COIN_CC_IS_CL_FALSE@     echo "non_pic_object='$$i'" >> $$lofile ; \
    728730@COIN_CC_IS_CL_FALSE@   done ; cd ..
    729 @COIN_CC_IS_CL_FALSE@   $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) linkdir/*.lo $(libcoinasl_la_LIBADD)
     731@COIN_CC_IS_CL_FALSE@   $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) linkdir/*.lo $(libcoinasl_la_LIBADD) $(libcoinasl_la_LDFLAGS)
    730732@COIN_CC_IS_CL_FALSE@   rm -rf linkdir
    731733
  • ThirdParty/ASL/trunk/configure

    r3096 r3117  
    19421942
    19431943
     1944# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
     1945if test "${enable_static_standardlibs+set}" = set; then
     1946  enableval="$enable_static_standardlibs"
     1947  case "$enableval" in
     1948     no | yes | auto ) ;;
     1949     *)
     1950       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
     1951echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
     1952   { (exit 1); exit 1; }; } ;;
     1953   esac
     1954   use_static_standardlibs=$enableval
     1955else
     1956  use_static_standardlibs=no
     1957fi;
     1958
     1959
     1960
    19441961
    19451962
     
    30303047    CFLAGS="$OPT_CFLAGS"
    30313048  fi
     3049
    30323050else
    30333051  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     
    31803198esac
    31813199
     3200# check whether to add flags for static linking against standard libraries to LDFLAGS
     3201if test x$use_static_standardlibs != xno ; then
     3202  case $build in
     3203    *-mingw*)
     3204      static_standardlib_flag=-static
     3205      ;;
     3206    *)
     3207      static_standardlib_flag=-static-libgcc
     3208      ;;
     3209  esac
     3210  case " $LDFLAGS " in
     3211    *" $static_standardlib_flag "* ) ;;
     3212    *)
     3213    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
     3214echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
     3215    coin_save_LDFLAGS="$LDFLAGS"
     3216    LDFLAGS="$LDFLAGS $static_standardlib_flag"
     3217    cat >conftest.$ac_ext <<_ACEOF
     3218/* confdefs.h.  */
     3219_ACEOF
     3220cat confdefs.h >>conftest.$ac_ext
     3221cat >>conftest.$ac_ext <<_ACEOF
     3222/* end confdefs.h.  */
     3223
     3224int
     3225main ()
     3226{
     3227int i=0;
     3228  ;
     3229  return 0;
     3230}
     3231_ACEOF
     3232rm -f conftest.$ac_objext conftest$ac_exeext
     3233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3234  (eval $ac_link) 2>conftest.er1
     3235  ac_status=$?
     3236  grep -v '^ *+' conftest.er1 >conftest.err
     3237  rm -f conftest.er1
     3238  cat conftest.err >&5
     3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3240  (exit $ac_status); } &&
     3241         { ac_try='test -z "$ac_c_werror_flag"
     3242                         || test ! -s conftest.err'
     3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3244  (eval $ac_try) 2>&5
     3245  ac_status=$?
     3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3247  (exit $ac_status); }; } &&
     3248         { ac_try='test -s conftest$ac_exeext'
     3249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3250  (eval $ac_try) 2>&5
     3251  ac_status=$?
     3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3253  (exit $ac_status); }; }; then
     3254  echo "$as_me:$LINENO: result: yes" >&5
     3255echo "${ECHO_T}yes" >&6
     3256else
     3257  echo "$as_me: failed program was:" >&5
     3258sed 's/^/| /' conftest.$ac_ext >&5
     3259
     3260echo "$as_me:$LINENO: result: no" >&5
     3261echo "${ECHO_T}no" >&6
     3262       LDFLAGS="$coin_save_LDFLAGS"
     3263       if test $use_static_standardlibs = yes ; then
     3264         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
     3265echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
     3266   { (exit 1); exit 1; }; }
     3267       fi
     3268
     3269fi
     3270rm -f conftest.err conftest.$ac_objext \
     3271      conftest$ac_exeext conftest.$ac_ext
     3272    ;;
     3273  esac
     3274fi
     3275
    31823276ac_ext=c
    31833277ac_cpp='$CPP $CPPFLAGS'
     
    32103304      coin_disable_shared=yes
    32113305      if test x"$enable_shared" = xyes; then
    3212         case "$CXX" in
     3306        case "$CC" in
    32133307          clang* )
    32143308            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
     
    32183312            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
    32193313echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
     3314            ;;
     3315          *gcc*)
     3316            if test x"$enable_dependency_linking" = xyes; then
     3317              coin_disable_shared=no
     3318            else
     3319              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
     3320echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
     3321            fi
    32203322            ;;
    32213323          *)
     
    48134915*-*-irix6*)
    48144916  # Find out which ABI we are using.
    4815   echo '#line 4815 "configure"' > conftest.$ac_ext
     4917  echo '#line 4917 "configure"' > conftest.$ac_ext
    48164918  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    48174919  (eval $ac_compile) 2>&5
     
    64126514
    64136515# Provide some information about the compiler.
    6414 echo "$as_me:6414:" \
     6516echo "$as_me:6516:" \
    64156517     "checking for Fortran 77 compiler version" >&5
    64166518ac_compiler=`set X $ac_compile; echo $2`
     
    74797581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    74807582   -e 's:$: $lt_compiler_flag:'`
    7481    (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
     7583   (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
    74827584   (eval "$lt_compile" 2>conftest.err)
    74837585   ac_status=$?
    74847586   cat conftest.err >&5
    7485    echo "$as_me:7485: \$? = $ac_status" >&5
     7587   echo "$as_me:7587: \$? = $ac_status" >&5
    74867588   if (exit $ac_status) && test -s "$ac_outfile"; then
    74877589     # The compiler can only warn and ignore the option if not recognized
     
    77477849   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77487850   -e 's:$: $lt_compiler_flag:'`
    7749    (eval echo "\"\$as_me:7749: $lt_compile\"" >&5)
     7851   (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
    77507852   (eval "$lt_compile" 2>conftest.err)
    77517853   ac_status=$?
    77527854   cat conftest.err >&5
    7753    echo "$as_me:7753: \$? = $ac_status" >&5
     7855   echo "$as_me:7855: \$? = $ac_status" >&5
    77547856   if (exit $ac_status) && test -s "$ac_outfile"; then
    77557857     # The compiler can only warn and ignore the option if not recognized
     
    78517953   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78527954   -e 's:$: $lt_compiler_flag:'`
    7853    (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
     7955   (eval echo "\"\$as_me:7955: $lt_compile\"" >&5)
    78547956   (eval "$lt_compile" 2>out/conftest.err)
    78557957   ac_status=$?
    78567958   cat out/conftest.err >&5
    7857    echo "$as_me:7857: \$? = $ac_status" >&5
     7959   echo "$as_me:7959: \$? = $ac_status" >&5
    78587960   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    78597961   then
     
    1019610298  lt_status=$lt_dlunknown
    1019710299  cat > conftest.$ac_ext <<EOF
    10198 #line 10198 "configure"
     10300#line 10300 "configure"
    1019910301#include "confdefs.h"
    1020010302
     
    1029610398  lt_status=$lt_dlunknown
    1029710399  cat > conftest.$ac_ext <<EOF
    10298 #line 10298 "configure"
     10400#line 10400 "configure"
    1029910401#include "confdefs.h"
    1030010402
     
    1264012742   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1264112743   -e 's:$: $lt_compiler_flag:'`
    12642    (eval echo "\"\$as_me:12642: $lt_compile\"" >&5)
     12744   (eval echo "\"\$as_me:12744: $lt_compile\"" >&5)
    1264312745   (eval "$lt_compile" 2>conftest.err)
    1264412746   ac_status=$?
    1264512747   cat conftest.err >&5
    12646    echo "$as_me:12646: \$? = $ac_status" >&5
     12748   echo "$as_me:12748: \$? = $ac_status" >&5
    1264712749   if (exit $ac_status) && test -s "$ac_outfile"; then
    1264812750     # The compiler can only warn and ignore the option if not recognized
     
    1274412846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1274512847   -e 's:$: $lt_compiler_flag:'`
    12746    (eval echo "\"\$as_me:12746: $lt_compile\"" >&5)
     12848   (eval echo "\"\$as_me:12848: $lt_compile\"" >&5)
    1274712849   (eval "$lt_compile" 2>out/conftest.err)
    1274812850   ac_status=$?
    1274912851   cat out/conftest.err >&5
    12750    echo "$as_me:12750: \$? = $ac_status" >&5
     12852   echo "$as_me:12852: \$? = $ac_status" >&5
    1275112853   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1275212854   then
     
    1431414416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1431514417   -e 's:$: $lt_compiler_flag:'`
    14316    (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
     14418   (eval echo "\"\$as_me:14418: $lt_compile\"" >&5)
    1431714419   (eval "$lt_compile" 2>conftest.err)
    1431814420   ac_status=$?
    1431914421   cat conftest.err >&5
    14320    echo "$as_me:14320: \$? = $ac_status" >&5
     14422   echo "$as_me:14422: \$? = $ac_status" >&5
    1432114423   if (exit $ac_status) && test -s "$ac_outfile"; then
    1432214424     # The compiler can only warn and ignore the option if not recognized
     
    1441814520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1441914521   -e 's:$: $lt_compiler_flag:'`
    14420    (eval echo "\"\$as_me:14420: $lt_compile\"" >&5)
     14522   (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
    1442114523   (eval "$lt_compile" 2>out/conftest.err)
    1442214524   ac_status=$?
    1442314525   cat out/conftest.err >&5
    14424    echo "$as_me:14424: \$? = $ac_status" >&5
     14526   echo "$as_me:14526: \$? = $ac_status" >&5
    1442514527   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1442614528   then
     
    1662516727   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1662616728   -e 's:$: $lt_compiler_flag:'`
    16627    (eval echo "\"\$as_me:16627: $lt_compile\"" >&5)
     16729   (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
    1662816730   (eval "$lt_compile" 2>conftest.err)
    1662916731   ac_status=$?
    1663016732   cat conftest.err >&5
    16631    echo "$as_me:16631: \$? = $ac_status" >&5
     16733   echo "$as_me:16733: \$? = $ac_status" >&5
    1663216734   if (exit $ac_status) && test -s "$ac_outfile"; then
    1663316735     # The compiler can only warn and ignore the option if not recognized
     
    1689316995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1689416996   -e 's:$: $lt_compiler_flag:'`
    16895    (eval echo "\"\$as_me:16895: $lt_compile\"" >&5)
     16997   (eval echo "\"\$as_me:16997: $lt_compile\"" >&5)
    1689616998   (eval "$lt_compile" 2>conftest.err)
    1689716999   ac_status=$?
    1689817000   cat conftest.err >&5
    16899    echo "$as_me:16899: \$? = $ac_status" >&5
     17001   echo "$as_me:17001: \$? = $ac_status" >&5
    1690017002   if (exit $ac_status) && test -s "$ac_outfile"; then
    1690117003     # The compiler can only warn and ignore the option if not recognized
     
    1699717099   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1699817100   -e 's:$: $lt_compiler_flag:'`
    16999    (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
     17101   (eval echo "\"\$as_me:17101: $lt_compile\"" >&5)
    1700017102   (eval "$lt_compile" 2>out/conftest.err)
    1700117103   ac_status=$?
    1700217104   cat out/conftest.err >&5
    17003    echo "$as_me:17003: \$? = $ac_status" >&5
     17105   echo "$as_me:17105: \$? = $ac_status" >&5
    1700417106   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1700517107   then
Note: See TracChangeset for help on using the changeset viewer.