Fix Linux so builds

This commit is contained in:
Lior Halphon
2024-12-01 19:06:35 +02:00
parent 67dee21804
commit 5180e8e03b

View File

@@ -803,7 +803,7 @@ $(LIBDIR)/libsameboy.a: $(LIBDIR)/libsameboy.o
$(LIBDIR)/libsameboy.$(DL_EXT): $(CORE_OBJECTS)
-@$(MKDIR) -p $(dir $@)
$(CC) $(LDFLAGS) -shared $(FAT_FLAGS) $(CFLAGS) $^ -o $@
$(CC) $(LDFLAGS) -fPIC -shared $(FAT_FLAGS) $(CFLAGS) $^ -o $@
ifeq ($(CONF), release)
$(STRIP) $@
$(CODESIGN)$@