Lines 1-16
Link Here
|
1 |
--- Makefile.sharedlibrary.orig 2017-09-23 01:06:08 UTC |
1 |
--- Makefile.sharedlibrary.orig 2018-10-09 12:58:18 UTC |
2 |
+++ Makefile.sharedlibrary |
2 |
+++ Makefile.sharedlibrary |
3 |
@@ -44,11 +44,11 @@ all: libduktape.so.$(REAL_VERSION) libdu |
3 |
@@ -52,7 +52,7 @@ INSTALL_PREFIX = /usr/local |
4 |
# to $INSTALL_PREFIX/include on installation. |
4 |
DUKTAPE_SRCDIR = ./src |
|
|
5 |
#DUKTAPE_SRCDIR = ./src-noline |
5 |
|
6 |
|
6 |
libduktape.so.$(REAL_VERSION): |
7 |
-CC = gcc |
7 |
- gcc -shared -fPIC -Wall -Wextra -Os -Wl,-soname,libduktape.so.$(SONAME_VERSION) \ |
8 |
+CC = cc |
8 |
+ $(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktape.so.$(SONAME_VERSION) \ |
|
|
9 |
-o $@ $(DUKTAPE_SRCDIR)/duktape.c |
10 |
|
9 |
|
11 |
libduktaped.so.$(REAL_VERSION): |
10 |
.PHONY: all |
12 |
- gcc -shared -fPIC -g -Wall -Wextra -Os -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \ |
11 |
all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) |
13 |
+ $(CC) -shared $(CFLAGS) -fPIC -Wall -Wextra -Wl,-soname,libduktaped.so.$(SONAME_VERSION) \ |
|
|
14 |
-o $@ $(DUKTAPE_SRCDIR)/duktape.c |
15 |
|
16 |
# Symlinks depend on platform conventions. |