diff options
author | James Clarke <jrtc27@jrtc27.com> | 2019-01-05 02:09:36 +0000 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2019-01-04 18:09:36 -0800 |
commit | a02257a861a4d13f31868a27c197cfc5576101e1 (patch) | |
tree | 25ba35426e7d539116a5bc7e42ed9de9905e0c6f | |
parent | 31e531b2b4afe8ec5e08d700727afdbbbe45bf34 (diff) | |
download | pk-a02257a861a4d13f31868a27c197cfc5576101e1.zip pk-a02257a861a4d13f31868a27c197cfc5576101e1.tar.gz pk-a02257a861a4d13f31868a27c197cfc5576101e1.tar.bz2 |
Don't require a RISC-V libc and crt when configuring (#132)
-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]) |