diff options
Diffstat (limited to 'dev-lang/clips/files/clips-makefile-remove_hardcoded.patch')
-rw-r--r-- | dev-lang/clips/files/clips-makefile-remove_hardcoded.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-lang/clips/files/clips-makefile-remove_hardcoded.patch b/dev-lang/clips/files/clips-makefile-remove_hardcoded.patch new file mode 100644 index 000000000000..56d30660aaed --- /dev/null +++ b/dev-lang/clips/files/clips-makefile-remove_hardcoded.patch @@ -0,0 +1,33 @@ +--- a/makefile ++++ b/makefile +@@ -66,8 +66,10 @@ debug : CFLAGS = -std=c99 -O0 -g + debug : LDLIBS = -lm + debug : clips + +-release : CC = gcc +-release : CFLAGS = -std=c99 -O3 -fno-strict-aliasing ++release : AR ?= ++release : CC ?= ++release : CFLAGS ?= ++release : LDFLAGS ?= + release : LDLIBS = -lm + release : clips + +@@ -88,14 +90,14 @@ release_cpp : LDLIBS = -lstdc++ + release_cpp : clips + + .c.o : +- $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(WARNINGS) $< ++ $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(LDFLAGS) $< + + clips : main.o libclips.a +- $(CC) -o clips main.o -L. -lclips $(LDLIBS) ++ $(CC) -o clips main.o -L. -lclips $(CFLAGS) $(LDFLAGS) $(LDLIBS) + + libclips.a : $(OBJS) + rm -f $@ +- ar cq $@ $(OBJS) ++ $(AR) cq $@ $(OBJS) + + clean : + -rm -f main.o $(OBJS) |