Bug#71499: Patch to resolve apt bug #71499
Patch for apt_0.3.19 so that shared libapt.so will build on GNU/Hurd.
Without
this patch, only a static library is built, causing the packaging rules
to
fail, as they expect to find libapt.so.*.
This resolves bug #71499, titled `apt: [hurd] doesn't build shared
libraries'.
The logic was tested against different HOST_OS values with make -np:
gnu0.2
and linux-gnu build shared libraries, anything-else-gnu does not, so
this
should not break other architectures. It is probably GNU make specific.
-Jay 'Eraserhead' Felice
--- buildlib/environment.mak.in.orig Tue Dec 21 02:37:56 1999
+++ buildlib/environment.mak.in Sat Dec 16 00:25:04 2000
@@ -44,8 +44,14 @@
ifeq ($(HOST_OS),linux-gnu)
SONAME_MAGIC=-Wl,-soname -Wl,
LFLAGS_SO=
-else
+else
+# This matches `gnu*', for HOST_OS=gnu0.2 (GNU/Hurd)
+ifeq ($(filter-out gnu%,$(HOST_OS)),)
+ SONAME_MAGIC=-Wl,-soname -Wl,
+ LFLAGS_SO=
+else
# Do not know how to creat shared libraries here.
ONLYSTATICLIBS = yes
+endif
endif
Reply to: