summaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-05-12 09:55:27 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-14 17:03:49 -0500
commit9abbdbfe59318779902ab08e5070f3819cb83b58 (patch)
tree8b7fb3a255fd117e26060e1fedb68542f13197f9 /rules.mak
parenta984a69e570d7639dba3f0b4a21b5169955162e4 (diff)
Fix build on Solaris and WIN32
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'rules.mak')
-rw-r--r--rules.mak5
1 files changed, 1 insertions, 4 deletions
diff --git a/rules.mak b/rules.mak
index 8471d4007..8d6d96e5b 100644
--- a/rules.mak
+++ b/rules.mak
@@ -8,10 +8,7 @@
%.o: %.m
$(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@")
-WAS=-Wl,--whole-archive
-WAE=-Wl,--no-whole-archive
-
-LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(LIBS) $(WAS) $(ARLIBS) $(WAE)," LINK $(TARGET_DIR)$@")
+LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(ARLIBS_BEGIN) $(ARLIBS) $(ARLIBS_END) $(LIBS)," LINK $(TARGET_DIR)$@")
%$(EXESUF): %.o
$(call LINK,$^)