From 896558b27d8f152be89a6b2074054a3ee799dc50 Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Fri, 1 Dec 2000 17:08:03 -0500 Subject: [svn-r3060] Purpose: Bugfix Description: The gcc linker couldn't resolve any socket routine symbols if the Stream VFD was configure. Solution: Add the socket library to the LIBS makefile variable not just when compiling with the native cc compiler but also if using GNU tools (such as on Solaris x86 systems). Platforms tested: SunOS 5.5 with GNU cc (hatteras), SunOS 5.6 with native cc (thor.sistec.kp.dlr.de) --- config/solaris2.x | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/solaris2.x b/config/solaris2.x index 894988b..d794d11 100644 --- a/config/solaris2.x +++ b/config/solaris2.x @@ -18,7 +18,6 @@ fi # Try solaris native compiler flags if test "X-" = "X-$cc_flags_set"; then CFLAGS="-erroff=%none -DBSD_COMP" - LIBS="$LIBS -lsocket" DEBUG_CFLAGS=-g DEBUG_CPPFLAGS= PROD_CFLAGS="-O -s" @@ -31,3 +30,6 @@ if test "X-" = "X-$cc_flags_set"; then ($CC -V 2>&1) | grep -s 'cc: .* C 4\.' >/dev/null 2>&1 \ && PROD_CFLAGS="`echo $PROD_CFLAGS | sed -e 's/-O//'`" fi + +# Add socket lib for the Stream Virtual File Driver +LIBS="$LIBS -lsocket" -- cgit v0.12