summaryrefslogtreecommitdiffstats
path: root/l
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2014-04-22 20:08:06 +0200
committerAdrien Nader <adrien@notk.org>2014-04-23 22:00:15 +0200
commit4876acb59db89cd57e3884a4e4cc1cc32ceb373c (patch)
tree176dd9f2ccfe3ee918c92c0300c037bd5b7389cf /l
parenta4c83f3643e18ca19008aa0a9779ff9eecadf6db (diff)
most: explicitely set -L in LDFLAGS and set CFLAGS to -O2 (many were empty)
Diffstat (limited to 'l')
-rwxr-xr-xl/atk/atk.SlackBuild1
-rwxr-xr-xl/cairo/cairo.SlackBuild3
-rwxr-xr-xl/dbus-glib/dbus-glib.SlackBuild1
-rwxr-xr-xl/expat/expat.SlackBuild1
-rwxr-xr-xl/freetype/freetype.SlackBuild1
-rwxr-xr-xl/fribidi/fribidi.SlackBuild3
-rwxr-xr-xl/gdk-pixbuf2/gdk-pixbuf2.SlackBuild1
-rwxr-xr-xl/giflib/giflib.SlackBuild1
-rwxr-xr-xl/glib-networking/glib-networking.SlackBuild1
-rwxr-xr-xl/glib2/glib2.SlackBuild3
-rwxr-xr-xl/gmp/gmp.SlackBuild3
-rwxr-xr-xl/gtk+2/gtk+2.SlackBuild1
-rwxr-xr-xl/harfbuzz/harfbuzz.SlackBuild1
-rwxr-xr-xl/libao/libao.SlackBuild3
-rwxr-xr-xl/libarchive/libarchive.SlackBuild1
-rwxr-xr-xl/libffi/libffi.SlackBuild5
-rwxr-xr-xl/libjpeg/libjpeg.SlackBuild1
-rwxr-xr-xl/libmad/libmad.SlackBuild3
-rwxr-xr-xl/libmpc/libmpc.SlackBuild3
-rwxr-xr-xl/libogg/libogg.SlackBuild1
-rwxr-xr-xl/libpng/libpng.SlackBuild1
-rwxr-xr-xl/libsndfile/libsndfile.SlackBuild5
-rwxr-xr-xl/libsoup/libsoup.SlackBuild3
-rwxr-xr-xl/libtasn1/libtasn1.SlackBuild5
-rwxr-xr-xl/libtheora/libtheora.SlackBuild3
-rwxr-xr-xl/libtiff/libtiff.SlackBuild1
-rwxr-xr-xl/libvorbis/libvorbis.SlackBuild5
-rwxr-xr-xl/libxml2/libxml2.SlackBuild3
-rwxr-xr-xl/libxslt/libxslt.SlackBuild3
-rwxr-xr-xl/mozilla-nss/mozilla-nss.SlackBuild2
-rwxr-xr-xl/mpfr/mpfr.SlackBuild1
-rwxr-xr-xl/pango/pango.SlackBuild3
-rwxr-xr-xl/pcre/pcre.SlackBuild1
-rwxr-xr-xl/sdl/sdl.SlackBuild4
34 files changed, 56 insertions, 22 deletions
diff --git a/l/atk/atk.SlackBuild b/l/atk/atk.SlackBuild
index 10d253a..4828700 100755
--- a/l/atk/atk.SlackBuild
+++ b/l/atk/atk.SlackBuild
@@ -55,6 +55,7 @@ find . \
-exec chmod 644 {} \;
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/cairo/cairo.SlackBuild b/l/cairo/cairo.SlackBuild
index b458f9d..05f9c1c 100755
--- a/l/cairo/cairo.SlackBuild
+++ b/l/cairo/cairo.SlackBuild
@@ -50,7 +50,8 @@ cd $PKGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/dbus-glib/dbus-glib.SlackBuild b/l/dbus-glib/dbus-glib.SlackBuild
index 6b7c989..831b42f 100755
--- a/l/dbus-glib/dbus-glib.SlackBuild
+++ b/l/dbus-glib/dbus-glib.SlackBuild
@@ -53,6 +53,7 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="-O2" \
CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/expat/expat.SlackBuild b/l/expat/expat.SlackBuild
index 4ceaa7d..d52edc3 100755
--- a/l/expat/expat.SlackBuild
+++ b/l/expat/expat.SlackBuild
@@ -49,6 +49,7 @@ chown -R root:root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/freetype/freetype.SlackBuild b/l/freetype/freetype.SlackBuild
index 92dab48..7cfa278 100755
--- a/l/freetype/freetype.SlackBuild
+++ b/l/freetype/freetype.SlackBuild
@@ -68,6 +68,7 @@ zcat $CWD/freetype.illadvisederror.diff.gz | patch -p1 --verbose || exit 1
chown -R root:root .
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
LIBPNG_CFLAGS="$(pkg-config --cflags libpng)" \
LIBPNG_LDFLAGS="$(pkg-config --libs libpng)" \
make setup \
diff --git a/l/fribidi/fribidi.SlackBuild b/l/fribidi/fribidi.SlackBuild
index 6e0ebec..4508154 100755
--- a/l/fribidi/fribidi.SlackBuild
+++ b/l/fribidi/fribidi.SlackBuild
@@ -56,7 +56,8 @@ find . -perm 777 -exec chmod 755 {} \;
find . -perm 775 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
chown -R root:root .
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure --prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
--mandir=/${PREFIX}/man \
diff --git a/l/gdk-pixbuf2/gdk-pixbuf2.SlackBuild b/l/gdk-pixbuf2/gdk-pixbuf2.SlackBuild
index 189699d..8457f70 100755
--- a/l/gdk-pixbuf2/gdk-pixbuf2.SlackBuild
+++ b/l/gdk-pixbuf2/gdk-pixbuf2.SlackBuild
@@ -60,6 +60,7 @@ zcat $CWD/gdk-pixbuf.pnglz.diff.gz | patch -p1 || exit 1
CFLAGS="-O2" \
CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/giflib/giflib.SlackBuild b/l/giflib/giflib.SlackBuild
index fd635b9..56e8ba9 100755
--- a/l/giflib/giflib.SlackBuild
+++ b/l/giflib/giflib.SlackBuild
@@ -49,6 +49,7 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/glib-networking/glib-networking.SlackBuild b/l/glib-networking/glib-networking.SlackBuild
index 42afc92..059fa60 100755
--- a/l/glib-networking/glib-networking.SlackBuild
+++ b/l/glib-networking/glib-networking.SlackBuild
@@ -54,6 +54,7 @@ find . \
-exec chmod 644 {} \;
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/glib2/glib2.SlackBuild b/l/glib2/glib2.SlackBuild
index cb926a7..faddeac 100755
--- a/l/glib2/glib2.SlackBuild
+++ b/l/glib2/glib2.SlackBuild
@@ -58,7 +58,8 @@ sed -i '/g_sprintf (t_str, "%ld", t);/ s;^;// ;' glib/tests/gdatetime.c
# Silly upstream, using the bleeding edge. Reconf:
autoreconf --force --install
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/gmp/gmp.SlackBuild b/l/gmp/gmp.SlackBuild
index ab3f10e..e252d47 100755
--- a/l/gmp/gmp.SlackBuild
+++ b/l/gmp/gmp.SlackBuild
@@ -61,7 +61,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/gtk+2/gtk+2.SlackBuild b/l/gtk+2/gtk+2.SlackBuild
index 1c71482..4c79d42 100755
--- a/l/gtk+2/gtk+2.SlackBuild
+++ b/l/gtk+2/gtk+2.SlackBuild
@@ -62,6 +62,7 @@ libtoolize --force
autoreconf -fiv
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/harfbuzz/harfbuzz.SlackBuild b/l/harfbuzz/harfbuzz.SlackBuild
index 9fa19e5..13c477f 100755
--- a/l/harfbuzz/harfbuzz.SlackBuild
+++ b/l/harfbuzz/harfbuzz.SlackBuild
@@ -56,6 +56,7 @@ find . \
CFLAGS="-O2" \
CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libao/libao.SlackBuild b/l/libao/libao.SlackBuild
index 1db5fd9..0871ce7 100755
--- a/l/libao/libao.SlackBuild
+++ b/l/libao/libao.SlackBuild
@@ -59,7 +59,8 @@ find . \
sed -i '/^libao_la_LDFLAGS =/ s/.*/\0 -lksuser/' src/Makefile.am
sed -i '/AC_CHECK_LIB(pthread, pthread_kill)/ s/pthread/winpthread/' configure.ac
autoreconf -fiv
-CFLAGS="-Wall -Wextra -O2" \
+CFLAGS="-O2 -Wall -Wextra" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libarchive/libarchive.SlackBuild b/l/libarchive/libarchive.SlackBuild
index 9db4407..0b5898d 100755
--- a/l/libarchive/libarchive.SlackBuild
+++ b/l/libarchive/libarchive.SlackBuild
@@ -58,6 +58,7 @@ find . \
CFLAGS="-O2" \
CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libffi/libffi.SlackBuild b/l/libffi/libffi.SlackBuild
index 8824446..ced2713 100755
--- a/l/libffi/libffi.SlackBuild
+++ b/l/libffi/libffi.SlackBuild
@@ -58,8 +58,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libjpeg/libjpeg.SlackBuild b/l/libjpeg/libjpeg.SlackBuild
index 7f3917c..2d77b3c 100755
--- a/l/libjpeg/libjpeg.SlackBuild
+++ b/l/libjpeg/libjpeg.SlackBuild
@@ -58,6 +58,7 @@ find . \
zcat $CWD/jpeg.CVE-2013-6629.diff.gz | patch -p1 --verbose || exit 1
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--mandir=/${PREFIX}/man \
diff --git a/l/libmad/libmad.SlackBuild b/l/libmad/libmad.SlackBuild
index 4849b94..210555e 100755
--- a/l/libmad/libmad.SlackBuild
+++ b/l/libmad/libmad.SlackBuild
@@ -69,7 +69,8 @@ sed -i 's/^libmad_la_LDFLAGS = -version-info \$(version_info)$/\0 -no-undefined/
autoreconf -fiv
# Configure:
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libmpc/libmpc.SlackBuild b/l/libmpc/libmpc.SlackBuild
index 7afe01a..87676c3 100755
--- a/l/libmpc/libmpc.SlackBuild
+++ b/l/libmpc/libmpc.SlackBuild
@@ -57,7 +57,8 @@ chown -R root:root .
sed -i -e 's/LDFLAGS="$LDFLAGS -no-undefined"//' configure
sed -i -e 's/libmpc_la_LDFLAGS = -version-info 2:0:0/\0 -no-undefined/' src/Makefile.in
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libogg/libogg.SlackBuild b/l/libogg/libogg.SlackBuild
index 435ac88..642f6b3 100755
--- a/l/libogg/libogg.SlackBuild
+++ b/l/libogg/libogg.SlackBuild
@@ -52,6 +52,7 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="-O2" \
CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libpng/libpng.SlackBuild b/l/libpng/libpng.SlackBuild
index 23c776a..8c31cf1 100755
--- a/l/libpng/libpng.SlackBuild
+++ b/l/libpng/libpng.SlackBuild
@@ -53,6 +53,7 @@ find . \
# Look like using ./configure is the only way that works now...
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libsndfile/libsndfile.SlackBuild b/l/libsndfile/libsndfile.SlackBuild
index c2f7618..764ec46 100755
--- a/l/libsndfile/libsndfile.SlackBuild
+++ b/l/libsndfile/libsndfile.SlackBuild
@@ -50,8 +50,9 @@ cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libsoup/libsoup.SlackBuild b/l/libsoup/libsoup.SlackBuild
index e6df809..46cbc18 100755
--- a/l/libsoup/libsoup.SlackBuild
+++ b/l/libsoup/libsoup.SlackBuild
@@ -51,7 +51,8 @@ chmod -R u+w,go+r-w,a-s .
sed -i 's/#include "soup-requester.h"/\0\n#include <string.h>/' libsoup/soup-request-file.c
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libtasn1/libtasn1.SlackBuild b/l/libtasn1/libtasn1.SlackBuild
index ea4d587..c681b31 100755
--- a/l/libtasn1/libtasn1.SlackBuild
+++ b/l/libtasn1/libtasn1.SlackBuild
@@ -57,8 +57,9 @@ find . \
# but libtasn1 (like wget) is still using an old copy of gnulib.
find . -name 'msvc-inval.c' -exec sed -i 's/\<cdecl\>/__cdecl/' {} +
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libtheora/libtheora.SlackBuild b/l/libtheora/libtheora.SlackBuild
index 3f821f8..b6ff79f 100755
--- a/l/libtheora/libtheora.SlackBuild
+++ b/l/libtheora/libtheora.SlackBuild
@@ -54,7 +54,8 @@ chmod -R u+w,go+r-w,a-s .
find . -iname '*.def' -exec sed -i 's/\r//' {} +
# Configure:
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libtiff/libtiff.SlackBuild b/l/libtiff/libtiff.SlackBuild
index 1f139f6..26e1db2 100755
--- a/l/libtiff/libtiff.SlackBuild
+++ b/l/libtiff/libtiff.SlackBuild
@@ -59,6 +59,7 @@ find . \
-exec chmod 644 {} \;
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libvorbis/libvorbis.SlackBuild b/l/libvorbis/libvorbis.SlackBuild
index a4f2479..bcdd798 100755
--- a/l/libvorbis/libvorbis.SlackBuild
+++ b/l/libvorbis/libvorbis.SlackBuild
@@ -49,8 +49,9 @@ cd libvorbis-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+CXXFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libxml2/libxml2.SlackBuild b/l/libxml2/libxml2.SlackBuild
index f40a467..5e532d2 100755
--- a/l/libxml2/libxml2.SlackBuild
+++ b/l/libxml2/libxml2.SlackBuild
@@ -56,7 +56,8 @@ find . \
zcat $CWD/libxml2.do-not-check-crc.diff.gz | patch -p1 --verbose || exit 1
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
r --prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/libxslt/libxslt.SlackBuild b/l/libxslt/libxslt.SlackBuild
index cf88c0d..e6cf942 100755
--- a/l/libxslt/libxslt.SlackBuild
+++ b/l/libxslt/libxslt.SlackBuild
@@ -55,7 +55,8 @@ find . \
sed -i -e 's/mkdir(directory, 0755);/mkdir(directory);/' libxslt/security.c
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/mozilla-nss/mozilla-nss.SlackBuild b/l/mozilla-nss/mozilla-nss.SlackBuild
index e040086..f560696 100755
--- a/l/mozilla-nss/mozilla-nss.SlackBuild
+++ b/l/mozilla-nss/mozilla-nss.SlackBuild
@@ -79,7 +79,7 @@ find . \
-exec chmod 644 {} \;
echo Building ...
-export LDFLAGS="-lz"
+export LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX} -lz"
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
export BUILD_OPT=1
diff --git a/l/mpfr/mpfr.SlackBuild b/l/mpfr/mpfr.SlackBuild
index fe73101..c014a33 100755
--- a/l/mpfr/mpfr.SlackBuild
+++ b/l/mpfr/mpfr.SlackBuild
@@ -73,6 +73,7 @@ if [ ! -z "$(ls $CWD/patches/* 2> /dev/null)" ]; then
fi
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/pango/pango.SlackBuild b/l/pango/pango.SlackBuild
index 838bc11..ce247c4 100755
--- a/l/pango/pango.SlackBuild
+++ b/l/pango/pango.SlackBuild
@@ -55,7 +55,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/pcre/pcre.SlackBuild b/l/pcre/pcre.SlackBuild
index 9887e16..976d7c9 100755
--- a/l/pcre/pcre.SlackBuild
+++ b/l/pcre/pcre.SlackBuild
@@ -58,6 +58,7 @@ find . \
-exec chmod 644 {} \;
CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
./configure \
--prefix=/${PREFIX} \
--libdir=/${PREFIX}/lib${LIBDIRSUFFIX} \
diff --git a/l/sdl/sdl.SlackBuild b/l/sdl/sdl.SlackBuild
index 90c9a1f..cc88049 100755
--- a/l/sdl/sdl.SlackBuild
+++ b/l/sdl/sdl.SlackBuild
@@ -118,7 +118,9 @@ fi
update_libtool
-CFLAGS="-O2" ./configure ${COMMON_CONFIGURE_OPTIONS} ${EXTRA_CONFIGURE_ARGS}
+CFLAGS="-O2" \
+LDFLAGS="-L/${PREFIX}/lib${LIBDIRSUFFIX}" \
+ ./configure ${COMMON_CONFIGURE_OPTIONS} ${EXTRA_CONFIGURE_ARGS}
make $NUMJOBS || make || exit 1
make install DESTDIR="${PKG}" || exit 1