PKGBUILDs/extra/libfbclient/link_atomic_ops.patch
2016-02-06 14:32:39 +00:00

27 lines
1.2 KiB
Diff

diff -urN a/builds/posix/make.defaults b/builds/posix/make.defaults
--- a/builds/posix/make.defaults 2013-03-19 02:37:30.000000000 -0600
+++ b/builds/posix/make.defaults 2014-02-19 15:55:29.151554390 -0700
@@ -151,7 +151,8 @@
EXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS)
STATICEXE_LINK:= @CXX@ $(GLOB_OPTIONS) $(CXXFLAGS)
-LINK_LIBS = @LIBS@
+ATOMIC_LIBS = -latomic_ops
+LINK_LIBS = @LIBS@ $(ATOMIC_LIBS)
ICU_LIBS = -licuuc -licudata -licui18n
STATICLINK_LIBS = @LIBS@
SO_LINK_LIBS = @LIBS@
@@ -294,11 +295,11 @@
LINK_CLIENT = $(CLIENTLIB_LINK) $(LINK_FIREBIRD_CLIENT_SYMBOLS) $(LIB_LINK_OPTIONS)\
$(LIB_LINK_IMPLIB) $(call LIB_LINK_SONAME,$(ClientLibrarySoName)) $(call LIB_LINK_RPATH,lib)
-LINK_CLIENT_LIBS = $(SO_LINK_LIBS) $(STATIC_CXXSUPPORT_LIB)
+LINK_CLIENT_LIBS = $(SO_LINK_LIBS) $(STATIC_CXXSUPPORT_LIB) $(ATOMIC_LIBS)
LINK_EMBED = $(LIB_LINK) $(LINK_FIREBIRD_EMBED_SYMBOLS) $(LIB_LINK_OPTIONS) $(LIB_EMBED_LINK_OPTIONS)\
$(call LIB_LINK_SONAME,$(SharedLibrarySoName)) $(call LIB_LINK_RPATH,lib)
-LINK_EMBED_LIBS = -L$(LIB) $(LIB_GUI) $(SO_LINK_LIBS) $(ICU_LIBS)
+LINK_EMBED_LIBS = -L$(LIB) $(LIB_GUI) $(SO_LINK_LIBS) $(ICU_LIBS) $(ATOMIC_LIBS)
# From utilities
CREATE_DB = $(BIN)/create_db$(EXEC_EXT)