Skip to content

Commit

Permalink
plutolang: add -fPIC flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo committed Apr 7, 2024
1 parent 4a7ec3b commit 850167f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plutolang/src-Makefile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ index 79a4a86..a18f29a 100644

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

$(LUA_T): $(LUA_O) $(LUA_A)
$(CXX) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
Expand Down

0 comments on commit 850167f

Please sign in to comment.