[Slackbuilds-users] pkg-config reports incorrect lib for Lus 5.2/5.3
Nate Bargmann
n0nb at n0nb.us
Sat Apr 7 01:59:20 UTC 2018
If my assumption is correct, I've attached patches to achieve the (I
think) correct output:
$ pkg-config --libs lua52
-llua5.2 -lm
$ pkg-config --libs lua53
-llua5.3 -lm
- Nate
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: http://www.n0nb.us GPG key: D55A8819 GitHub: N0NB
-------------- next part --------------
diff --git a/development/lua52/lua52.SlackBuild b/development/lua52/lua52.SlackBuild
index 6b50862bc7..a0f9bc5829 100644
--- a/development/lua52/lua52.SlackBuild
+++ b/development/lua52/lua52.SlackBuild
@@ -123,6 +123,7 @@ cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
-e '/^INSTALL_CMOD= /s,lib,&'"${LIBDIRSUFFIX}"',' \
-e '/^libdir=/s,/lib,&'"${LIBDIRSUFFIX}"',' \
-e '/^includedir=/s,/include,&/lua\${V},' \
+ -e '/^Libs:/s,-llua,&${V},' \
$CWD/lua.pc.in > lua$V.pc
ln -s lua$V.pc lua-$V.pc
ln -s lua$V.pc lua${V%.?}${V#?.}.pc
-------------- next part --------------
diff --git a/development/lua53/lua53.SlackBuild b/development/lua53/lua53.SlackBuild
index a4cb0dfefa..ccfc0a4ded 100644
--- a/development/lua53/lua53.SlackBuild
+++ b/development/lua53/lua53.SlackBuild
@@ -123,6 +123,7 @@ cd $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig
-e '/^INSTALL_CMOD= /s,lib,&'"${LIBDIRSUFFIX}"',' \
-e '/^libdir=/s,/lib,&'"${LIBDIRSUFFIX}"',' \
-e '/^includedir=/s,/include,&/lua\${V},' \
+ -e '/^Libs:/s,-llua,&${V},' \
$CWD/lua.pc.in > lua$V.pc
ln -s lua$V.pc lua-$V.pc
ln -s lua$V.pc lua${V%.?}${V#?.}.pc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180406/37d19a1e/attachment.asc>
More information about the SlackBuilds-users
mailing list