Author: sebor
Date: Tue Mar 20 15:54:43 2007
New Revision: 520636
URL: http://svn.apache.org/viewvc?view=rev&rev=520636
Log:
2007-03-20 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-286
* vacpp.config (PRELINKFLAGS): Avoided appending flags when the
variable is empty to prevent trying to prelink with the wrong
options (i.e., without -qmkshrobj). This should complete the
change started in rev 515423:
http://svn.apache.org/viewvc?view=rev&revision=515423
Modified:
incubator/stdcxx/trunk/etc/config/vacpp.config
Modified: incubator/stdcxx/trunk/etc/config/vacpp.config
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/vacpp.config?view=diff&rev=520636&r1=520635&r2=520636
==============================================================================
--- incubator/stdcxx/trunk/etc/config/vacpp.config (original)
+++ incubator/stdcxx/trunk/etc/config/vacpp.config Tue Mar 20 15:54:43 2007
@@ -101,7 +101,12 @@
# bump up the maximum AIX binder error level from the default of 4
# to silence ld warning 0711-224 (Duplicate symbol) when the tempinc
# template instantiation model is active (-qtempinc)
- PRELINKFLAGS += -Wl,-bh:5
+ ifneq ($(PRELINKFLAGS),)
+ # append to PRELINKFLAGS only if the variable is not empty
+ # to avoid trying to prelink with the wrong options (i.e.,
+ # without -qmkshrobj)
+ PRELINKFLAGS += -Wl,-bh:5
+ endif
LDFLAGS += -Wl,-bh:5
endif