diff options
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ | |||
2 | # dlfcn-win32 Makefile | 2 | # dlfcn-win32 Makefile |
3 | # | 3 | # |
4 | include config.mak | 4 | include config.mak |
5 | CFLAGS=-Wall -O3 -fomit-frame-pointer | ||
5 | 6 | ||
6 | ifeq ($(BUILD_SHARED),yes) | 7 | ifeq ($(BUILD_SHARED),yes) |
7 | TARGETS += libdl.dll libdl.dll.a | 8 | TARGETS += libdl.dll libdl.dll.a |
@@ -24,7 +25,7 @@ HEADERS := dlfcn.h | |||
24 | all: $(TARGETS) | 25 | all: $(TARGETS) |
25 | 26 | ||
26 | %.o: %.c | 27 | %.o: %.c |
27 | $(CC) -o $@ -c $< -Wall -O3 -fomit-frame-pointer | 28 | $(CC) -o $@ -c $< $(CFLAGS) |
28 | 29 | ||
29 | libdl.a: $(LIB_OBJS) | 30 | libdl.a: $(LIB_OBJS) |
30 | $(AR) cru $@ $^ | 31 | $(AR) cru $@ $^ |