diff options
-rw-r--r-- | Makefile.in | 2 | ||||
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 376670d..e41684e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -111,7 +111,7 @@ COMPILE := $(CC) -MMD -MP $(CFLAGS) \ # - LIBS : Library flags (eg. -l) LD := $(CC) -LDFLAGS := @LDFLAGS@ -nostartfiles -nostdlib -static $(LDFLAGS) $(march) $(mabi) +LDFLAGS := @LDFLAGS@ $(LDFLAGS) $(march) $(mabi) LIBS := @LIBS@ LINK := $(LD) $(LDFLAGS) @@ -2043,6 +2043,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Checks for programs #------------------------------------------------------------------------- +LDFLAGS="$LDFLAGS -nostartfiles -nostdlib -static" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' diff --git a/configure.ac b/configure.ac index 917179f..67734fd 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,7 @@ AC_CANONICAL_HOST # Checks for programs #------------------------------------------------------------------------- +LDFLAGS="$LDFLAGS -nostartfiles -nostdlib -static" AC_PROG_CC AC_PROG_CXX AC_CHECK_TOOL([AR],[ar]) |