summaryrefslogtreecommitdiff
path: root/net/ORBit/patches/patch-af
blob: b5f3a3e390cfed03e1631550090af441f08cc572 (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
$NetBSD: patch-af,v 1.8 2003/07/11 23:38:46 grant Exp $

--- src/IIOP/Makefile.in.orig	Mon Jan  7 18:23:54 2002
+++ src/IIOP/Makefile.in	Thu Apr  4 12:30:24 2002
@@ -128,7 +128,7 @@
 DEFS = @DEFS@ -I. -I$(srcdir) -I../..
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@
+LIBS = @LIBS@ $(PTHREAD_LDFLAGS)
 @HAVE_HOSTS_ACCESS_TRUE@libIIOP_la_DEPENDENCIES =  $(addsuffix .lo, \
 @HAVE_HOSTS_ACCESS_TRUE@$(basename $(filter %.o, $(shell ar t \
 @HAVE_HOSTS_ACCESS_TRUE@$(LIBWRAP_PATH)))))
@@ -399,8 +399,11 @@
 
 make_libwrap_files: $(LIBWRAP_PATH)
 	ar x $(LIBWRAP_PATH)
-	for I in $(basename $(libwrap_files)); do mv $$I.o $$I.lo; done
-	ar x $(LIBWRAP_PATH)
+	for I in $(basename $(libwrap_files)); do \
+		( echo "# $$I.lo - a libtool object file"; \
+		echo "# Generated by ltmain.sh - GNU libtool 1.4a (fake)"; \
+		echo pic_object=none; echo non_pic_object=$$I.o ) >$$I.lo; \
+	done
 	touch make_libwrap_files
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.