diff --git a/solenv/inc/unxlngi4.mk b/solenv/inc/unxlngi4.mk index 9ba59e0b915b..356a0b939a2b 100644 --- a/solenv/inc/unxlngi4.mk +++ b/solenv/inc/unxlngi4.mk @@ -4,9 +4,9 @@ # # $RCSfile: unxlngi4.mk,v $ # -# $Revision: 1.44 $ +# $Revision: 1.45 $ # -# last change: $Author: vg $ $Date: 2007-10-15 12:40:36 $ +# last change: $Author: kz $ $Date: 2007-12-12 13:19:31 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -44,7 +44,7 @@ JAVAFLAGSDEBUG=-g #LINKOUTPUT_FILTER=" |& $(SOLARENV)$/bin$/msg_filter" # _PTHREADS is needed for the stl -CDEFS+=$(PTHREAD_CFLAGS) -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 +CDEFS+=$(PTHREAD_CFLAGS) -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=$(STLPORT_VER) # enable visibility define in "sal/types.h" .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" @@ -189,8 +189,13 @@ STDSHLCUIMT+=-ldl -lpthread -lm LIBSALCPPRT*=-Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive +.IF "$(STLPORT_VER)" >= "500" +LIBSTLPORT=$(DYNAMIC) -lstlport -lstdc++ +LIBSTLPORTST=$(STATIC) -lstlport $(DYNAMIC) +.ELSE LIBSTLPORT=$(DYNAMIC) -lstlport_gcc -lstdc++ LIBSTLPORTST=$(STATIC) -lstlport_gcc $(DYNAMIC) +.ENDIF #FILLUPARC=$(STATIC) -lsupc++ $(DYNAMIC)