mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-admin/authbind: fix build, *FLAGS patch
Closes: https://bugs.gentoo.org/777834 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -8,6 +8,7 @@ inherit flag-o-matic toolchain-funcs
|
||||
DESCRIPTION="Bind sockets to privileged ports without root"
|
||||
HOMEPAGE="https://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/"
|
||||
SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
@@ -16,7 +17,7 @@ KEYWORDS="~amd64"
|
||||
BDEPEND="virtual/awk"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.1.1-respect-flags.patch"
|
||||
"${FILESDIR}/${PN}-2.1.2-respect-flags.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
|
||||
26
app-admin/authbind/files/authbind-2.1.2-respect-flags.patch
Normal file
26
app-admin/authbind/files/authbind-2.1.2-respect-flags.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 37a8673..89f83f4 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -34,10 +34,9 @@ INSTALL_PROGRAM ?= install -o root -g root -m 755 -s
|
||||
INSTALL_DIR ?= install -o root -g root -m 755 -d
|
||||
STRIP ?= strip
|
||||
|
||||
-OPTIMISE= -O2
|
||||
-LDFLAGS= -g
|
||||
LIBS= -ldl -lc
|
||||
-CFLAGS= -g $(OPTIMISE) \
|
||||
+SHARED_LDFLAGS=
|
||||
+CFLAGSS+= \
|
||||
-Wall -Wwrite-strings -Wpointer-arith -Wimplicit \
|
||||
-Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
|
||||
CPPFLAGS= -DMAJOR_VER='"$(MAJOR)"' -DMINOR_VER='"$(MINOR)"' \
|
||||
@@ -82,7 +81,7 @@ helper: helper.o
|
||||
helper.o authbind.o: authbind.h
|
||||
|
||||
$(LIBTARGET): libauthbind.o
|
||||
- $(LD) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
|
||||
+ $(LD) $(SHARED_LDFLAGS) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
|
||||
|
||||
clean distclean:
|
||||
rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core
|
||||
Reference in New Issue
Block a user