Skip to content

Commit

Permalink
Revert "Remove macOS plugin builder hacks"
Browse files Browse the repository at this point in the history
This reverts commit df66564.
  • Loading branch information
falkTX committed Dec 5, 2023
1 parent ec2145e commit c7657be
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions utils/plugin-builder/plugin-builder.mk
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,20 @@ $(STAMP_INSTALLED): $(STAMP_BUILT)
touch $@

$(STAMP_BUILT): $(STAMP_CONFIGURED)
ifeq ($(MACOS),true)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/Makefile $($(PKG)_BUILDDIR)/*/makefile),\
sed -i -e 's/-Wl,--gc-sections//g' $(p);)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/Makefile),\
sed -i -e 's/-Wl,--as-needed//g' $(p);)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/*/makefile),\
sed -i -e 's/-Wl,--no-undefined//g' $(p);)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/*/makefile),\
sed -i -e 's/-Wl,--exclude-libs,ALL//g' $(p);)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/*/makefile),\
sed -i -e 's/-Wl,-z,relro,-z,now//g' $(p);)
$(foreach p,$(wildcard $($(PKG)_BUILDDIR)/*/makefile),\
sed -i -e 's/-Wl,-z,noexecstack//g' $(p);)
endif
$($(PKG)_BUILD_CMDS)
touch $@

Expand Down

0 comments on commit c7657be

Please sign in to comment.