app-text/llpp: respect user compiler and add libdir setting
authorTim Harder <radhermit@gentoo.org>
Sat, 22 Dec 2018 07:59:13 +0000 (01:59 -0600)
committerTim Harder <radhermit@gentoo.org>
Sat, 22 Dec 2018 08:17:57 +0000 (02:17 -0600)
To avoid showing wrong arch linking warnings on multi-arch systems.

Signed-off-by: Tim Harder <radhermit@gentoo.org>
app-text/llpp/files/Makefile
app-text/llpp/llpp-30.ebuild

index 1fb99c9a2118b1979d167afddf9b2bd5abf69ea7..0bd94cab00f2a2d12a7b75de7d2c386293623ae2 100644 (file)
@@ -5,12 +5,13 @@ endif
 
 # paths
 PREFIX ?= /usr/local
+LIBDIR ?= /usr/lib
 
 # includes and libs
 PKGCONF_DEPS := freetype2 harfbuzz libopenjp2 libjpeg mupdf x11 zlib
 CPPFLAGS += -D_GNU_SOURCE -DFFP
-CFLAGS += -g -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell pkg-config --cflags $(PKGCONF_DEPS))
-LDLIBS = -lpthread -ljbig2dec $(shell pkg-config --libs $(PKGCONF_DEPS))
+CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wshadow $(shell pkg-config --cflags $(PKGCONF_DEPS))
+LDLIBS = -L$(LIBDIR) -lpthread -ljbig2dec $(shell pkg-config --libs $(PKGCONF_DEPS))
 
 # ocaml
 CAMLOPT = ocamlopt
index 9f5ec30d5069c07a7a423b1374e39a7b289f9c43..3ba1ce6fe4512a00516ae7fa34de0c241fc0efae 100644 (file)
@@ -51,7 +51,7 @@ src_prepare() {
 }
 
 src_compile() {
-       emake -j1 VERSION=${PV}
+       emake -j1 VERSION=${PV} CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)"
 }
 
 src_install() {