All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libsepol: compile archive with -fpic
@ 2006-09-26 17:54 Jeremy A. Mowery
  2006-09-27 11:43 ` Stephen Smalley
  2006-09-28 18:30 ` Joshua Brindle
  0 siblings, 2 replies; 4+ messages in thread
From: Jeremy A. Mowery @ 2006-09-26 17:54 UTC (permalink / raw)
  To: selinux; +Cc: sds, selinux-dev

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.

--- libsepol/src/Makefile-orig  2006-09-19 10:03:54.000000000 -0400
+++ libsepol/src/Makefile       2006-09-19 10:06:21.000000000 -0400
@@ -24,7 +24,7 @@ $(LIBSO): $(LOBJS)
        ln -sf $@ $(TARGET)

 %.o:  %.c
-       $(CC) $(CFLAGS) -c -o $@ $<
+       $(CC) $(CFLAGS) -fpic -c -o $@ $<

 %.lo:  %.c
        $(CC) $(CFLAGS) -fpic -DSHARED -c -o $@ $<



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-09-28 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 17:54 [PATCH] libsepol: compile archive with -fpic Jeremy A. Mowery
2006-09-27 11:43 ` Stephen Smalley
2006-09-27 12:37   ` Joshua Brindle
2006-09-28 18:30 ` Joshua Brindle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.