summaryrefslogtreecommitdiffstats
path: root/patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch')
-rw-r--r--patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch b/patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch
new file mode 100644
index 000000000..9434a3531
--- /dev/null
+++ b/patches/libsemanage-2.1.9/0002-makefile-remove-host-path-from-list-of-linker-search.patch
@@ -0,0 +1,34 @@
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Mon, 14 Jan 2013 20:02:08 +0100
+Subject: [PATCH] makefile: remove host path from list of linker search dirs
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+ src/Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index eb4e6d5..690a816 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -82,17 +82,17 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT)
+ $(CC) $(CFLAGS) $(SWIG_CFLAGS) $(RUBYINC) -fPIC -DSHARED -c -o $@ $<
+
+ $(SWIGSO): $(SWIGLOBJ)
+- $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -L$(LIBDIR)
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage
+
+ $(SWIGRUBYSO): $(SWIGRUBYLOBJ)
+- $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lsemanage -L$(LIBDIR)
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lsemanage
+
+ $(LIBA): $(OBJS)
+ $(AR) rcs $@ $^
+ $(RANLIB) $@
+
+ $(LIBSO): $(LOBJS)
+- $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -lsepol -lselinux -lbz2 -lustr -L$(LIBDIR) -Wl,-soname,$(LIBSO),--version-script=libsemanage.map,-z,defs
++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -lsepol -lselinux -lbz2 -lustr -Wl,-soname,$(LIBSO),--version-script=libsemanage.map,-z,defs
+ ln -sf $@ $(TARGET)
+
+ $(LIBPC): $(LIBPC).in ../VERSION