Skip to content

Commit

Permalink
plutolang: fix ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo committed Apr 7, 2024
1 parent 42c1eda commit 4a7ec3b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/plutolang/src-Makefile.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/src/Makefile b/src/Makefile
index 79a4a86..0481361 100644
index 79a4a86..a18f29a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,7 +6,7 @@
Expand All @@ -22,6 +22,24 @@ index 79a4a86..0481361 100644
MYLIBS=-Lvendor/Soup/soup -lsoup -Lvendor/Soup/Intrin -lsoupintrin
MYOBJS=

@@ -37,7 +37,7 @@ CMCFLAGS=

PLATS= guess aix bsd freebsd generic linux linux-readline macosx mingw posix solaris

-LUA_A= libplutostatic.a
+LUA_A= libpluto.a
LUA_SO= libpluto.so
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
LIB_O= lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o lcryptolib.o ltablib.o lutf8lib.o lassertlib.o lvector3lib.o lbase32.o lbase64.o ljson.o lurllib.o linit.o lstarlib.o lcatlib.o lhttplib.o lschedulerlib.o lsocketlib.o lbigint.o lxml.o
@@ -69,7 +69,7 @@ $(LUA_A): $(BASE_O)
$(RANLIB) $@

$(LUA_SO): $(BASE_O) $(LUA_A)
- $(CXX) -shared -Wl,-soname,$(LUA_SO) -o $@ $? ${LIBS}
+ $(CXX) -shared -Wl,-soname,$(LUA_SO) -o $@ $? $(LDFLAGS) ${LIBS}

$(LUA_T): $(LUA_O) $(LUA_A)
$(CXX) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
@@ -122,7 +122,7 @@ FreeBSD NetBSD OpenBSD freebsd:

generic: $(ALL)
Expand Down

0 comments on commit 4a7ec3b

Please sign in to comment.