summaryrefslogtreecommitdiff
path: root/firebird
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-07-17 22:04:18 +0200
committerMichael Stahl <mstahl@redhat.com>2013-07-17 22:10:13 +0200
commit9ae13870b7779daac1dea0dc50fe6418c80cc48f (patch)
treed5fe223ed42783c81101e9fb3cfe7bf1fdddf85c /firebird
parent37fec0f868fc92ff625b48af4bab57b9066abbfc (diff)
Revert "firebird: pass link options as LDFLAGS"
This reverts commit 3136c467dcfc3fe457ccc974684333f431f0af61. Strangely firebird's build system apparently uses LDFLAGS on Linux and Windows but not on MacOSX, whereas CXXFLAGS are consistently put also on linker command lines. Change-Id: I87dbe69a8d85b058ece9170105bf928cbd22db85
Diffstat (limited to 'firebird')
-rw-r--r--firebird/ExternalProject_firebird.mk13
1 files changed, 7 insertions, 6 deletions
diff --git a/firebird/ExternalProject_firebird.mk b/firebird/ExternalProject_firebird.mk
index 2f0da6142e40..d52cabcc4571 100644
--- a/firebird/ExternalProject_firebird.mk
+++ b/firebird/ExternalProject_firebird.mk
@@ -24,21 +24,22 @@ $(eval $(call gb_ExternalProject_register_targets,firebird,\
# note: this can intentionally only build against internal atomic_op
# note: this can intentionally only build against internal tommath
+# do not set LDFLAGS - it is mysteriously not used by firebird on MacOSX
$(call gb_ExternalProject_get_state_target,firebird,build):
$(call gb_ExternalProject_run,build,\
unset MAKEFLAGS \
&& export PKG_CONFIG="" \
&& export CXXFLAGS=" \
- $(if $(filter NO,$(SYSTEM_BOOST)),-I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS)) \
+ $(if $(filter NO,$(SYSTEM_BOOST)), \
+ -I$(call gb_UnpackedTarball_get_dir,boost),$(BOOST_CPPFLAGS) \
+ -L$(call gb_UnpackedTarball_get_dir,boost)/source/lib) \
$(if $(filter NO,$(SYSTEM_ICU)), \
-I$(call gb_UnpackedTarball_get_dir,icu)/source \
-I$(call gb_UnpackedTarball_get_dir,icu)/source/i18n \
-I$(call gb_UnpackedTarball_get_dir,icu)/source/common \
- ,$(ICU_CPPFLAGS))" \
- && export LDFLAGS=" \
- -L$(OUTDIR)/lib \
- $(if $(filter NO,$(SYSTEM_BOOST)), \
- -L$(call gb_UnpackedTarball_get_dir,boost)/source/lib)" \
+ ,$(ICU_CPPFLAGS)) \
+ -L$(OUTDIR)/lib \
+ " \
&& export LD_LIBRARY_PATH="$(OUTDIR)/lib:$(call gb_UnpackedTarball_get_dir,boost)/source/lib" \
&& export DYLD_LIBRARY_PATH="$(OUTDIR)/lib:$(call gb_UnpackedTarball_get_dir,boost)/source/lib" \
$(if $(filter WNT-MSC,$(OS)-$(COM)), && export PATH="$(PATH):$(shell cygpath $(OUTDIR)/lib):$(shell cygpath $(call gb_UnpackedTarball_get_dir,icu)/source/lib)") \