1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-27 12:42:45 +00:00

Fixed builds on x64 *nix platforms to properly detect the availability of libm

This commit is contained in:
Mark Pizzolato
2011-10-12 15:39:06 -07:00
parent 329d84ea0c
commit 51525f7a3f

View File

@@ -28,7 +28,7 @@ ifeq ($(WIN32),)
endif
endif
OS_CCDEFS = -D_GNU_SOURCE
ifeq (libm,$(shell if $(TEST) -e /usr/lib/libm.$(LIBEXT); then echo libm; fi))
ifeq (libm,$(shell if $(TEST) -e /usr/lib/libm.$(LIBEXT) -o -e /usr/lib64/libm.$(LIBEXT); then echo libm; fi))
OS_LDFLAGS += -lm
endif
ifeq (SunOS,$(shell uname))