summaryrefslogtreecommitdiff
path: root/debian/patches/libpthread_linker_script.patch
blob: 54b3801b74dfc6e17b330f2d2ce84c385b003e87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2005-01-21  Michael Banck  <mbanck@debian.org>

        * Makefile ($(libdir)/libpthread2.a): Install linker script
        from $(srcdir) instead of current directory.
        ($(libdir)/libpthread2_pic.a): Likewise.

Index: Makefile
===================================================================
RCS file: /cvsroot/hurd/hurd/libpthread/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- libpthread/Makefile	20 Aug 2003 20:40:06 -0000	1.2
+++ libpthread/Makefile	20 Jan 2005 23:35:31 -0000
@@ -181,14 +181,16 @@
 .PHONY: $(libdir)/libpthread.a $(libdir)/libpthread_pic.a
 
 # XXX: These rules are a hack.  But it is better than messing with
-# ../Makeconf at the moment.
+# ../Makeconf at the moment.  Note that the linker scripts
+# $(srcdir)/libpthread.a and $(srcdir)/libpthread_pic.a get overwritten
+# when building in $(srcdir) and not a seperate build directory.
 $(libdir)/libpthread2.a: $(libdir)/libpthread.a
 	mv $< $@
-	$(INSTALL_DATA) libpthread.a $<
+	$(INSTALL_DATA) $(srcdir)/libpthread.a $<
 
 $(libdir)/libpthread2_pic.a: $(libdir)/libpthread_pic.a
 	mv $< $@
-	$(INSTALL_DATA) libpthread_pic.a $<
+	$(INSTALL_DATA) $(srcdir)/libpthread_pic.a $<
 
 .PHONY: $(addprefix $(includedir)/, $(sysdeps_headers))