Skip to content

Commit 03c8e67

Browse files
committed
makefile: default jsregexp-CC to system-CC.
this is for systems where gcc may not be available/called something else. We assume that $CC is set to something valid, or that cc is available (since that's the fallback for $CC in gnu-make if $CC is not set).
1 parent 1d67ba3 commit 03c8e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ JSREGEXP005_PATH=deps/jsregexp005
4646
jsregexp:
4747
git submodule init
4848
git submodule update
49-
$(MAKE) "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP_PATH}"
50-
$(MAKE) "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP005_PATH}"
49+
$(MAKE) "CC=$(CC)" "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP_PATH}"
50+
$(MAKE) "CC=$(CC)" "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP005_PATH}"
5151

5252
install_jsregexp: jsregexp
5353
# remove old binary.

0 commit comments

Comments
 (0)