libsemanage -- Do not link against libpython, this is considered bad in Debian
PATCH 3/4 libsemanage -- Do not link against libpython, this is considered bad in Debian
Hi,
Do not link against libpython, the interpreter is already linked to it. In Debian this is usually considered bad practice.
Laurent
Description: Do not link against libpython, this is considered bad practice in Debian
Author: Laurent Bigonville <[email protected]>
Date: Wed, 07 Mar 2012 14:21:48 +0100
libsemanage/src/Makefile +1 -1
@@ -77,7 +77,7 @@ $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -fPIC -DSHARED -c -o $@ $< $(SWIGSO): $(SWIGLOBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@ $(SWIGRUBYSO): $(SWIGRUBYLOBJ) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 20 lines · Laurent Bigonville
Hi,
Do not link against libpython, the interpreter is already linked to it. In Debian this is usually considered bad practice.
Laurent
Description: Do not link against libpython, this is considered bad practice in Debian Author: Laurent Bigonville <[email protected]>
Date: Wed, 07 Mar 2012 14:21:48 +0100--- a/libsemanage/src/Makefile +++ b/libsemanage/src/Makefile @@ -77,7 +77,7 @@ $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -fPIC -DSHARED -c -o $@ $<
$(SWIGSO): $(SWIGLOBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@
$< -L. -lsemanage -L$(LIBDIR) $(PYTHONLIBDIR)
-Wl,-soname,$@,-z,defs + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@
$< -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@
Quoted 9 lines
$(SWIGRUBYSO): $(SWIGRUBYLOBJ) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lsemanage -L$(LIBDIR) -Wl,-soname,$@
-- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
THis seems to work fine in Fedora.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9xzZMACgkQrlYvE4MpobNkvgCfZZ4Lpkm1azDTeuadZrMUyYsh gTQAn2+dOdZDPvLxGTqynQAW3QbTKFjl
=7MIQ
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.