Skip to content
Snippets Groups Projects
Commit cf50632a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

More rpath hackery...

If SBBSDIR is set, add $(SBBSDIR)/exec to rpath.
Always add the original output directory to rpath.

I'm not sure what the old LD_RUN_PATH stuff was trying to do, but
I think these are the bits that make it work.
parent 5f61b5d6
No related branches found
No related tags found
No related merge requests found
Pipeline #7884 passed
......@@ -127,10 +127,9 @@ MT_CFLAGS += $(SBBSDEFS) $(SFTP-MT_CFLAGS)
ifneq ($(os),darwin)
ifdef SBBSDIR
LIB_RPATH += -Wl,-rpath,$(LIBODIR)
else
LIB_RPATH += -Wl,-rpath,$(PWD)/$(LIBODIR)
LIB_RPATH += -Wl,-rpath,$(SBBSDIR)/exec
endif
LIB_RPATH += -Wl,-rpath,$(PWD)/$(LIBODIR)
LIB_RPATH += '-Wl,-rpath,$$ORIGIN,-rpath,$$ORIGIN/../$(LIBODIR),-z,origin,--enable-new-dtags'
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment