[PATCH xorg-gtest 2/3] distcheck fails: cannot open linker script file libxorg-gtest.ver

Gaetan Nadon memsize at videotron.ca
Mon Feb 27 08:04:35 PST 2012


The $(top_srcdir) path is needed to locate the source as it is not
in the same dir as the generated files.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 src/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 2c2648a..c760354 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -28,10 +28,10 @@ libxorg_gtest_main_la_CPPFLAGS = \
 	$(AM_CPPFLAGS) \
 	$(GTEST_CPPFLAGS)
 
-libxorg_gtest_la_LDFLAGS = $(GTEST_DEPS_LIBS) -Wl,--version-script=libxorg-gtest.ver
+libxorg_gtest_la_LDFLAGS = $(GTEST_DEPS_LIBS) -Wl,--version-script=$(top_srcdir)/src/libxorg-gtest.ver
 libxorg_gtest_main_la_LDFLAGS = \
 	$(GTEST_DEPS_LIBS) \
-	-Wl,--version-script=libxorg-gtest_main.ver
+	-Wl,--version-script=$(top_srcdir)/src/libxorg-gtest_main.ver
 
 AM_CXXFLAGS = -I$(top_srcdir)/include $(GTEST_DEPS_CFLAGS)
 
-- 
1.7.5.4



More information about the xorg-devel mailing list