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 include $(POCO_BASE)/build/rules/global
SYSLIBS += -lssl -lcrypto
objects = genrsakey objects = genrsakey
target = genrsakey target = genrsakey

View File

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

View File

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

View File

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

View File

@ -17,7 +17,7 @@ LINKMODE = SHARED
CC = cc -xtarget=opteron -m64 CC = cc -xtarget=opteron -m64
CXX = CC -xtarget=opteron -m64 -library=no%Cstd CXX = CC -xtarget=opteron -m64 -library=no%Cstd
LINK = $(CXX) LINK = $(CXX)
LIB = $(CXX) -xar -o $@ LIB = $(CXX) -xar -o
RANLIB = ranlib RANLIB = ranlib
SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@) SHLIB = $(CXX) $(LINKFLAGS) -G -o $@ -h$(notdir $@)
SHLIBLN = $(POCO_BASE)/build/script/shlibln 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) $(EXEC_DEBUG_STATIC): $(foreach o,$(objects),$(OBJPATH_DEBUG_STATIC)/$(o).o)
@echo "** Building executable (debug)" $@ @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) $(CPYDBG)
$(STRIPDBGCMD) $(STRIPDBGCMD)
$(postbuild) $(postbuild)
$(EXEC_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o) $(EXEC_RELEASE_STATIC): $(foreach o,$(objects),$(OBJPATH_RELEASE_STATIC)/$(o).o)
@echo "** Building executable (release)" $@ @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) $(STRIPCMD)
$(postbuild) $(postbuild)