diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 7 |
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 ;; |