summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-08-27 17:51:09 +0200
committerBenjamin Otte <otte@redhat.com>2014-08-27 18:02:52 +0200
commit21d3701291821f750d1c2304f6d87c8f9de32142 (patch)
treedd8cb78a4730bc54cbd429a3487c9ecf8f215eeb /testsuite
parent4a6ecf33fccdd05084701115cb0b067b6a725ef9 (diff)
downloadgtk+-21d3701291821f750d1c2304f6d87c8f9de32142.tar.gz
reftests: Fix Makefile
with non-installed tests the build would get an empty $(reftestdir) which would screw up the LDFLAGS. An rpath seems to be required to make libtool build a shared object. Without an rpath line, it only builds a static object. https://bugzilla.gnome.org/show_bug.cgi?id=735401
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/reftests/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index 52a8d99d24..19c1a5e2fb 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -409,6 +409,8 @@ reftest_LTLIBRARIES = \
libreftest.la \
$(NULL)
+libreftest_la_LDFLAGS = -rpath $(reftestdir)
+
substitutions = \
-e s,@libexecdir\@,$(libexecdir),g \
$(NULL)
@@ -429,9 +431,12 @@ else
noinst_LTLIBRARIES = \
libreftest.la \
$(NULL)
+
+libreftest_la_LDFLAGS = -rpath /iHaveNoIdeaWhatImDoing
+
endif
-libreftest_la_LDFLAGS = -rpath $(reftestdir) -avoid-version -module $(no_undefined)
+libreftest_la_LDFLAGS += -avoid-version -module $(no_undefined)
libreftest_la_CFLAGS = $(gtk_reftest_CFLAGS)
libreftest_la_LIBADD = $(gtk_reftest_LDADD)
libreftest_la_SOURCES = \