SF [2840802] fixes compiling static libraries on Solaris

SF [2841113] Crypto testsuite/sample fails to link on POSIX
This commit is contained in:
Aleksandar Fabijanic 2009-08-20 17:13:16 +00:00
parent 1bd3511e89
commit 4bdeaa7baf
6 changed files with 9 additions and 5 deletions

View File

@ -8,6 +8,8 @@
include $(POCO_BASE)/build/rules/global
SYSLIBS += -lssl -lcrypto
objects = genrsakey
target = genrsakey

View File

@ -8,6 +8,8 @@
include $(POCO_BASE)/build/rules/global
SYSLIBS += -lssl -lcrypto
objects = CryptoTestSuite Driver \
CryptoTest RSATest

View File

@ -17,7 +17,7 @@ LINKMODE = SHARED
CC = cc
CXX = CC
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
LIB = $(CXX) -xar -o
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln

View File

@ -17,7 +17,7 @@ LINKMODE = SHARED
CC = cc
CXX = CC
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
LIB = $(CXX) -xar -o
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln

View File

@ -17,7 +17,7 @@ LINKMODE = SHARED
CC = cc -xtarget=opteron -m64
CXX = CC -xtarget=opteron -m64 -library=no%Cstd
LINK = $(CXX)
LIB = $(CXX) -xar -o $@
LIB = $(CXX) -xar -o
RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln

View File

@ -41,14 +41,14 @@ shared_release: bindirs $(EXEC_RELEASE_SHARED)
$(EXEC_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building executable (debug)" $@
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SYSLIBS)
$(LINK) $(LINKFLAGS) $(DEBUGOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_DEBUG) $(SHAREDOPT_LINK) $(SYSLIBS)
$(CPYDBG)
$(STRIPDBGCMD)
$(postbuild)
$(EXEC_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building executable (release)" $@
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SYSLIBS)
$(LINK) $(LINKFLAGS) $(RELEASEOPT_LINK) $(STATICOPT_LINK) -o $@ $^ $(LIBRARY) $(TARGET_LIBS_RELEASE) $(SHAREDOPT_LINK) $(SYSLIBS)
$(STRIPCMD)
$(postbuild)