Skip to content

Commit 25bad38

Browse files
committed
Makefile.sharedlibrary: duk: use paths from INSTALL_PREFIX
This handles both the case where /usr/local is not on the paths by default, and when the user installs duktape to a non-default prefix.
1 parent dbd4674 commit 25bad38

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

dist-files/Makefile.sharedlibrary

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ install: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION)
6767
mkdir -p $(INSTALL_PREFIX)/include/
6868
cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(INSTALL_PREFIX)/include/
6969

70-
# Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
71-
# path which may not be the case for all distributions.
72-
#CCOPTS = -I/usr/local/include -L/usr/local/lib
7370
CCOPTS = -I./examples/cmdline
7471
duk:
75-
$(CC) $(CCOPTS) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
72+
$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm

0 commit comments

Comments
 (0)