Skip to content

Commit

Permalink
makefile: default jsregexp-CC to system-CC.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
L3MON4D3 committed Apr 16, 2024
1 parent 1d67ba3 commit 03c8e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ JSREGEXP005_PATH=deps/jsregexp005
jsregexp:
git submodule init
git submodule update
$(MAKE) "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP_PATH}"
$(MAKE) "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP005_PATH}"
$(MAKE) "CC=$(CC)" "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP_PATH}"
$(MAKE) "CC=$(CC)" "INCLUDE_DIR=-I'$(shell pwd)/deps/lua51_include/'" LDLIBS="${LUA_LDLIBS}" -C "${JSREGEXP005_PATH}"

install_jsregexp: jsregexp
# remove old binary.
Expand Down

0 comments on commit 03c8e67

Please sign in to comment.