Link with -ldl on non-Windows systems.

This commit is contained in:
Daniel Beer 2011-10-22 10:03:06 +13:00
parent 87b1e66c27
commit 83048f233f
1 changed files with 3 additions and 3 deletions

View File

@ -50,11 +50,11 @@ endif
ifeq ($(OS),Windows_NT)
MSPDEBUG_CC = gcc
WIN32_LIBS = -lws2_32 -lregex
OS_LIBS = -lws2_32 -lregex
BINARY = mspdebug.exe
else
MSPDEBUG_CC = $(CC)
WIN32_LIBS =
OS_LIBS = -ldl
BINARY = mspdebug
endif
@ -63,7 +63,7 @@ GCC_CFLAGS = -O1 -Wall -Wno-char-subscripts -ggdb
CONFIG_CFLAGS = -DLIB_DIR=\"$(LIBDIR)\"
MSPDEBUG_LDFLAGS = $(LDFLAGS) $(PORTS_LDFLAGS)
MSPDEBUG_LIBS = -lusb $(READLINE_LIBS) $(WIN32_LIBS)
MSPDEBUG_LIBS = -lusb $(READLINE_LIBS) $(OS_LIBS)
MSPDEBUG_CFLAGS = $(CFLAGS) $(READLINE_CFLAGS) $(PORTS_CFLAGS)\
$(GCC_CFLAGS) $(INCLUDES) $(CONFIG_CFLAGS)