summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-01-27 15:45:56 +0000
committerBernhard Reutner-Fischer2006-01-27 15:45:56 +0000
commit08a1b5095d710c5d905056a9daa14a1acad5590b (patch)
tree2b3632bc1361c718d8f80b7c95240730b7f52d71 /Makefile
parent79af7d5debe2f40ca1128975167243d4bb00fb51 (diff)
downloadbusybox-08a1b5095d710c5d905056a9daa14a1acad5590b.zip
busybox-08a1b5095d710c5d905056a9daa14a1acad5590b.tar.gz
- add a macro to check for ld and as flags
Very unreliable as e.g the ld check will see the flags supported by each emulation, not just the active one. good enough for now.. Fix would be to crate one or more dummy .c files and accually try if a flag works.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce45583..9841659 100644
--- a/Makefile
+++ b/Makefile
@@ -277,8 +277,7 @@ endif
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -shared \
$(CFLAGS_PIC) \
-Wl,-soname=$(LD_LIBBUSYBOX).$(MAJOR_VERSION) \
- -Wl,--enable-new-dtags -Wl,--reduce-memory-overheads \
- -Wl,-z,combreloc -Wl,-shared -Wl,--as-needed -Wl,--warn-shared-textrel \
+ -Wl,-z,combreloc $(LIB_LDFLAGS) \
-o $(@) \
-Wl,--start-group -Wl,--whole-archive \
$(LIBRARY_DEFINE) $(^) \