Revision: 2037
http://svn.sourceforge.net/selinux/?rev=2037&view=rev
Author: madmethod
Date: 2006-09-28 11:25:10 -0700 (Thu, 28 Sep 2006)
Log Message:
-----------
Author: "Jeremy A. Mowery"
Email: jm...@tr...
Subject: libsepol: compile archive with -fpic
Date: Tue, 26 Sep 2006 13:54:51 -0400
The libsepol archive is compiled normally without the -fpic flag. This
causes problems with other things that use libsepol.a with dynamic
relocation on 64-bit machines. The setools project uses libsepol.a in a
shared object library; checkpolicy is prevented from being built as a
position independent executable. The following patch modifies
libsepol's Makefile to build the archive using position independent
code.
Modified Paths:
--------------
trunk/libsepol/src/Makefile
Modified: trunk/libsepol/src/Makefile
===================================================================
--- trunk/libsepol/src/Makefile 2006-09-28 12:18:30 UTC (rev 2036)
+++ trunk/libsepol/src/Makefile 2006-09-28 18:25:10 UTC (rev 2037)
@@ -24,7 +24,7 @@
ln -sf $@ $(TARGET)
%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -fpic -c -o $@ $<
%.lo: %.c
$(CC) $(CFLAGS) -fpic -DSHARED -c -o $@ $<
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|