From 8121caf374edc7b1bcbcddc97e8f2f61da60067f Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Sat, 22 Nov 2014 13:14:17 +0300 Subject: fixed cc arguments order --- GNUmakefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index f821e04..6ad40cb 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -2,7 +2,8 @@ CFLAGS = -Wall -g PCRE_CONFIG = pcre-config #PCRE_CONFIG = pkg-config libpcre PCRE_CFLAGS := $(shell $(PCRE_CONFIG) --cflags) -PCRE_LDFLAGS := $(shell $(PCRE_CONFIG) --libs) +PCRE_LIBS := $(shell $(PCRE_CONFIG) --libs) +LIBS = $(PCRE_LIBS) tests = test001 test002 test003 test004 test005 test006 @@ -15,8 +16,8 @@ endif .PHONY: check clean pcre.so: pcre.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(MAKE_CFLAGS) $(PCRE_CFLAGS) -fPIC \ - $(LDFLAGS) $(PCRE_LDFLAGS) -shared -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(MAKE_CFLAGS) -fPIC \ + $(LDFLAGS) -shared -o $@ $< $(LIBS) check: $(tests) -- cgit v1.2.1