Skip to content
Snippets Groups Projects
Commit 6571d774 authored by deuce's avatar deuce
Browse files

Set up LD_RUN_PATH

parent b0b9d5bd
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,23 @@ endif ...@@ -23,6 +23,23 @@ endif
vpath %.c .. vpath %.c ..
# Set up LD_RUN_PATH for run-time locating of the .so files
PWD := $(shell dirname `pwd`)
ifdef SBBSDIR
ifeq ($(os),sunos)
LD_RUN_PATH := $(SBBSDIR)/exec:$(PWD)/$(LIBODIR):/opt/sfw/gcc-3/lib
else
LD_RUN_PATH := $(SBBSDIR)/exec:$(PWD)/$(LIBODIR)
endif
else
ifeq ($(os),sunos)
LD_RUN_PATH := $(PWD)/$(LIBODIR):/opt/sfw/gcc-3/lib
else
LD_RUN_PATH := $(PWD)/$(LIBODIR)
endif
endif
export LD_RUN_PATH
CFLAGS += $(SBBSDEFS) -I.. $(SMBLIB_CFLAGS) $(XPDEV-MT_CFLAGS) `pkg-config libglade-2.0 --cflags` CFLAGS += $(SBBSDEFS) -I.. $(SMBLIB_CFLAGS) $(XPDEV-MT_CFLAGS) `pkg-config libglade-2.0 --cflags`
# Hopefully, -Wl,-E exports all symbols dynamically everywhere. # Hopefully, -Wl,-E exports all symbols dynamically everywhere.
LDFLAGS += -Wl,-E -L../$(LIBODIR) $(SMBLIB_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(MT_LDFLAGS) `pkg-config libglade-2.0 --libs` LDFLAGS += -Wl,-E -L../$(LIBODIR) $(SMBLIB_LDFLAGS) $(XPDEV-MT_LDFLAGS) $(MT_LDFLAGS) `pkg-config libglade-2.0 --libs`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment