diff options
author | Michael Grzeschik <mgr@xviews.de> | 2011-01-18 11:58:26 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2011-01-18 13:11:00 +0100 |
commit | 4cd3bb78588459c6e82a99e56170d0c8d0284948 (patch) | |
tree | a8e4433445aef0e6cdf3db1cb08753ea9cb15c88 /src/Makefile | |
parent | b5abcb69701f2f72db433448831eef1052148952 (diff) |
Makefile: be more robust against toolchains without syscalls
Several toolchains are missing syscalls provided by the libc used. For example,
if the newlib was build with the configure flag "--disable-newlib-supplied-syscalls".
To prevent the configure check for things like "_exit" in osmocom
the CFLAGS+="-nostartfiles -nodefaultlibs" helps a lot.
Signed-off-by: Michael Grzeschik <mgr@xviews.de>
Acked-by: Wolfram Sang <wolfram@the-dreams.de>
Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index a0dea5db..b3594c10 100644 --- a/src/Makefile +++ b/src/Makefile @@ -39,7 +39,7 @@ shared/libosmocore/build-target/Makefile: shared/libosmocore/configure shared/li cd shared/libosmocore/build-target && ../configure \ --host=arm-elf-linux --disable-vty --enable-panic-infloop \ --disable-shared --disable-talloc --disable-tests \ - CC="$(CROSS_TOOL_PREFIX)gcc" CFLAGS="-Os -ffunction-sections -I$(TOPDIR)/target/firmware/include" + CC="$(CROSS_TOOL_PREFIX)gcc" CFLAGS="-Os -ffunction-sections -I$(TOPDIR)/target/firmware/include -nostartfiles -nodefaultlibs" shared/libosmocore/build-target/src/.libs/libosmocore.a: shared/libosmocore/build-target/Makefile cd shared/libosmocore/build-target && make |