diff options
author | Akira TAGOH <akira@tagoh.org> | 2011-03-11 12:07:31 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2011-03-11 12:07:31 +0900 |
commit | 4541c793bc14c7d6a43bc680925742f6b7a5d8e4 (patch) | |
tree | f6ada85b5f448296e8b8be33f57594d9055693fe | |
parent | b500e9b0268594d7ba603d0017a594725caf599f (diff) |
stop hardcoding -lm in Makefile
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | hieroglyph/Makefile.am | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e6c749c..e02f426 100644 --- a/configure.ac +++ b/configure.ac @@ -311,6 +311,11 @@ AM_PATH_GLIB_2_0($GLIB_REQUIRED, :, *** GLIB $GLIB_REQUIRED or better is required. The latest version of *** GLIB is always available from ftp://ftp.gtk.org/.]), glib) +dnl To avoid the unexpected errors +_save_cflags=$CFLAGS +CFLAGS=$(sed -e 's/\-Werror//g') +AC_CHECK_LIBM +CFLAGS=$_save_cflags dnl ====================================================================== dnl options diff --git a/hieroglyph/Makefile.am b/hieroglyph/Makefile.am index 00ae0f3..2de1ab6 100644 --- a/hieroglyph/Makefile.am +++ b/hieroglyph/Makefile.am @@ -14,7 +14,7 @@ LIBS = \ @LDFLAGS@ \ $(GLIB_LIBS) \ $(GMODULE_LIBS) \ - -lm \ + $(LIBM) \ $(NULL) EXTRA_DIST = \ hgversion.h.in \ |