summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-15 00:44:28 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-15 00:44:28 +0000
commit402cf956631b801b67dcc7c22be3ba6a86831912 (patch)
tree444289d0e4ae5ee54d94ac3638ba028a77616347 /test
parent40699dc7136c0ffa1d380727a74d7062c4c9557f (diff)
make sure we build against local headers and link against local libs
Diffstat (limited to 'test')
-rw-r--r--test/Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 3be58f688..203e6a188 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -77,7 +77,7 @@ endif
XWARNINGS := $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
XARCH_CFLAGS := $(subst ",, $(strip $(ARCH_CFLAGS)))
XCOMMON_CFLAGS := -D_GNU_SOURCE -I$(top_builddir)test
-CFLAGS := $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS)
+CFLAGS := $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include
HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
ifeq ($(DODEBUG),y)
@@ -94,7 +94,7 @@ ifneq ($(strip $(HAVE_SHARED)),y)
LDFLAGS += -static
HOST_LDFLAGS += -static
endif
-LDFLAGS += -B$(top_builddir)lib -Wl,-rpath,$(top_builddir)lib
+LDFLAGS += -B$(top_builddir)lib -Wl,-rpath,$(top_builddir)lib -Wl,-rpath-link,$(top_builddir)lib
# Filter output