aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-12-11 18:47:33 +0000
committerJason Molenda <jmolenda@apple.com>1998-12-11 18:47:33 +0000
commit852b7d11925e764c941874eaac3cbd5b87467926 (patch)
tree222682e76a3dfc36f11c12999453cd3970174508 /gdb/configure.in
parentdee563f3488a4d298e31264856c737f80c234507 (diff)
downloadgdb-852b7d11925e764c941874eaac3cbd5b87467926.zip
gdb-852b7d11925e764c941874eaac3cbd5b87467926.tar.gz
gdb-852b7d11925e764c941874eaac3cbd5b87467926.tar.bz2
1998-12-11 Jeff Law (law@cygnus.com)
* configure.in (with-sim-gpu2): Do not emit a -L argument without an associated pathname. Link in the math library after the gpu2 library. Assumes that libm is around (and doesn't take advantage of the AC_CHECK_LIB(m) that is already in configure.in), but this is a minor point and unlikely to cause problems.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index b3b9298..9bb69ce 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -667,7 +667,12 @@ AC_ARG_WITH(sim-gpu2,
mips*-sky*-*)
if test -d "${withval}"
then
- LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
+ if test x${x_libraries} != x
+ then
+ LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm"
+ else
+ LIBS="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm"
+ fi
else
AC_MSG_WARN([Directory ${withval} does not exist.])
fi ;;