Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 358462 Details for
Bug 484560
sys-apps/busybox-1.20.2[static,selinux]: link fails due to "-l-pthread" from pkgconfig
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated busybox-1.20.2-selinux-pkg-config.patch
busybox-1.20.2-selinux-pkg-config.patch (text/plain), 1.97 KB, created by
thaehaid
on 2013-09-11 08:38:11 UTC
(
hide
)
Description:
Updated busybox-1.20.2-selinux-pkg-config.patch
Filename:
MIME Type:
Creator:
thaehaid
Created:
2013-09-11 08:38:11 UTC
Size:
1.97 KB
patch
obsolete
>From 5694afd72a0a424fcdd2ac85838229a1a86b7e84 Mon Sep 17 00:00:00 2001 >From: Mike Frysinger <vapier@gentoo.org> >Date: Sat, 20 Oct 2012 15:01:26 -0400 >Subject: [PATCH] build system: use pkg-config to look up selinux libs > >Newer versions of libselinux has started linking against more libs. >Rather than continuing hardcoding things, switch to using pkg-config >to query for its dependencies. > >Signed-off-by: Mike Frysinger <vapier@gentoo.org> >--- > Makefile | 1 + > Makefile.flags | 12 +++++++++++- > 2 files changed, 12 insertions(+), 1 deletion(-) > >diff --git a/Makefile b/Makefile >index b2e9477..8995ff5 100644 >--- a/Makefile >+++ b/Makefile >@@ -297,6 +297,7 @@ NM = $(CROSS_COMPILE)nm > STRIP = $(CROSS_COMPILE)strip > OBJCOPY = $(CROSS_COMPILE)objcopy > OBJDUMP = $(CROSS_COMPILE)objdump >+PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config > AWK = awk > GENKSYMS = scripts/genksyms/genksyms > DEPMOD = /sbin/depmod >diff --git a/Makefile.flags b/Makefile.flags >index e77c0e5..307afa7 100644 >--- a/Makefile.flags >+++ b/Makefile.flags >@@ -78,6 +78,12 @@ ARCH_FPIC ?= -fpic > ARCH_FPIE ?= -fpie > ARCH_PIE ?= -pie > >+# Usage: $(eval $(call pkg_check_modules,VARIABLE-PREFIX,MODULES)) >+define pkg_check_modules >+$(1)_CFLAGS := $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --cflags $(2)) >+$(1)_LIBS := $(shell $(PKG_CONFIG) $(PKG_CONFIG_FLAGS) --libs-only-l $(2)) >+endef >+ > ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y) > # on i386: 14% smaller libbusybox.so > # (code itself is 9% bigger, we save on relocs/PLT/GOT) >@@ -89,6 +95,7 @@ endif > > ifeq ($(CONFIG_STATIC),y) > CFLAGS_busybox += -static >+PKG_CONFIG_FLAGS += --static > endif > > ifeq ($(CONFIG_PIE),y) >@@ -131,7 +138,10 @@ LDLIBS += pam pam_misc pthread > endif > > ifeq ($(CONFIG_SELINUX),y) >-LDLIBS += selinux sepol >+SELINUX_PC_MODULES = libselinux libsepol >+$(eval $(call pkg_check_modules,SELINUX,$(SELINUX_PC_MODULES))) >+CPPFLAGS += $(SELINUX_CFLAGS) >+LDLIBS += $(if $(SELINUX_LIBS),$(SELINUX_LIBS:-l%=%),$(SELINUX_PC_MODULES:lib%=%)) > endif > > ifeq ($(CONFIG_EFENCE),y) >-- >1.7.12 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 484560
:
358462
|
358466