summary refs log tree commit diff
path: root/pkgs/os-specific/linux/libselinux/fPIC.patch
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2013-02-24 13:25:53 +0100
committerVladimír Čunát <vcunat@gmail.com>2013-02-24 13:25:53 +0100
commitde70e3739d2e69806ddfd47efa8b21aa1864b15e (patch)
treea36cce23a53c3a9fd9b7b4e2331572ecbfb2b76c /pkgs/os-specific/linux/libselinux/fPIC.patch
parentf6b28fad730253d58a89776862cc12a000afbd20 (diff)
downloadnixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.gz
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.bz2
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.lz
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.xz
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.tar.zst
nixpkgs-de70e3739d2e69806ddfd47efa8b21aa1864b15e.zip
SELinux fixes and updates to 2012-09-24
Diffstat (limited to 'pkgs/os-specific/linux/libselinux/fPIC.patch')
-rw-r--r--pkgs/os-specific/linux/libselinux/fPIC.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libselinux/fPIC.patch b/pkgs/os-specific/linux/libselinux/fPIC.patch
new file mode 100644
index 00000000000..fdc1fa41a33
--- /dev/null
+++ b/pkgs/os-specific/linux/libselinux/fPIC.patch
@@ -0,0 +1,13 @@
+diff --git a/src/Makefile b/src/Makefile
+index ac019df..00432b9 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -132,7 +132,7 @@ $(AUDIT2WHYSO): $(AUDIT2WHYLOBJ)
+ 	$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux $(LIBDIR)/libsepol.a -L$(LIBDIR)
+ 
+ %.o:  %.c policy.h
+-	$(CC) $(CFLAGS) $(TLSFLAGS) -c -o $@ $<
++	$(CC) $(CFLAGS) $(TLSFLAGS) -fPIC -c -o $@ $<
+ 
+ %.lo:  %.c policy.h
+ 	$(CC) $(CFLAGS) -fPIC -DSHARED -c -o $@ $<