summaryrefslogtreecommitdiff
path: root/lang/duktape/files/patch-Makefile.cmdline
blob: 6782b4055d873476b33f1ebd4da8f9a34d08c328 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- Makefile.cmdline.orig	2016-05-03 11:57:37 UTC
+++ Makefile.cmdline
@@ -8,9 +8,9 @@ DUKTAPE_SOURCES = src/duktape.c
 DUKTAPE_CMDLINE_SOURCES = \
 	examples/cmdline/duk_cmdline.c
 
-CC	= gcc
-CCOPTS	= -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
-CCOPTS += -I./src   # duktape.h and duk_config.h must be in include path
+CC	?= gcc
+CCOPTS	= ${CFLAGS} -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
+CCOPTS += -I./src ${CPPFLAGS}  # duktape.h and duk_config.h must be in include path
 CCLIBS	= -lm
 
 # If you want linenoise, you can enable these.  At the moment linenoise