From b253cfbbecd24454236f9b88585bede2b76d887c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 30 Nov 2000 14:52:42 -0500 Subject: [svn-r3037] Purpose: Bug-ish fix Description: Spurious warnings would show up if libtool was trying to pass the -LANG:std flag to the compile line. Also, if the library is compiled with -all-static, then it would complain about not finding dlopen and friends. Solution: Used the libtool -Wc, option to pass the -LANG:std flag to the compile line. Used ``-dlopen self'' when compiling. Platforms tested: Linux --- c++/config/commence.in | 4 ++-- c++/config/solaris2.x | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c++/config/commence.in b/c++/config/commence.in index 659436d..dcd62a5 100644 --- a/c++/config/commence.in +++ b/c++/config/commence.in @@ -46,9 +46,9 @@ PUB_LIB=$(LIB) LT_STATIC_EXEC=@LT_STATIC_EXEC@ DYNAMIC_DIRS=@DYNAMIC_DIRS@ LT=$(top_builddir)/libtool -LT_COMPILE=$(LT) --mode=compile $(CXX) +LT_COMPILE=$(LT) --mode=compile $(CXX) -dlopen self LT_LINK_LIB=$(LT) --mode=link $(CXX) -rpath $(libdir) -LT_LINK_EXE=$(LT) --mode=link $(CXX) $(LT_STATIC_EXEC) -rpath $(bindir) $(DYNAMIC_DIRS) +LT_LINK_EXE=$(LT) --mode=link $(CXX) $(LT_STATIC_EXEC) -dlopen self -static -rpath $(bindir) $(DYNAMIC_DIRS) LT_RUN=$(LT) --mode=execute LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM) LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA) diff --git a/c++/config/solaris2.x b/c++/config/solaris2.x index 53a4d6b..55aa291 100644 --- a/c++/config/solaris2.x +++ b/c++/config/solaris2.x @@ -17,7 +17,7 @@ fi # Try solaris native compiler flags if test -z "$cxx_flags_set"; then - CXXFLAGS="-instances=global -LANG:std" + CXXFLAGS="-instances=global -Wc,-LANG:std" LIBS="$LIBS -lsocket" DEBUG_CXXFLAGS=-g DEBUG_CPPFLAGS= -- cgit v0.12