aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2013-07-01 16:08:20 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2013-07-01 16:08:20 -0700
commit0bdb8c84092bf7c5eb4c981c620997a5893bfb70 (patch)
tree626fcccb06a3752a75af5e012c43242eab811ea4
parent4a8de9ed7285bb497bc236aec9319bc639b9f114 (diff)
downloadpk-0bdb8c84092bf7c5eb4c981c620997a5893bfb70.zip
pk-0bdb8c84092bf7c5eb4c981c620997a5893bfb70.tar.gz
pk-0bdb8c84092bf7c5eb4c981c620997a5893bfb70.tar.bz2
Fixed -lgcc bug in configure.ac (needed for -m32)
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac3
2 files changed, 2 insertions, 5 deletions
diff --git a/configure b/configure
index 67569a0..fb55187 100755
--- a/configure
+++ b/configure
@@ -3953,9 +3953,7 @@ fi
CFLAGS="-Wall -Os -std=gnu99 -Wno-unused"
-LIBS="-lgcc"
-
-LIBS="-lc"
+LIBS="-lc -lgcc"
diff --git a/configure.ac b/configure.ac
index f18d6b4..185237a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,8 +72,7 @@ AC_HEADER_STDC
#-------------------------------------------------------------------------
AC_SUBST([CFLAGS], ["-Wall -Os -std=gnu99 -Wno-unused"])
-AC_SUBST([LIBS], ["-lgcc"])
-AC_SUBST([LIBS], ["-lc"])
+AC_SUBST([LIBS], ["-lc -lgcc"])
AX_DEFAULT_CONFIGURE_ARG([--host=riscv])