tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
shell wrappers: merge -l nameoflib into a single -lnameoflib
Hi,
I am working on pkgsrc/lang/rust on NetBSD and Linux.
The older shell wrappers cannot handle "-l m" (whitespace between -l
and library name, m) and I cannot build some libraries in lang/rust.
I suggest the following patch.
It does not break
BUILDLINK_TRANSFORM= l:execinfo:execinfo:elf
like BUILDLINK_TRANSFORM.
What should be confirmed to adopt this change?
Index: mk/wrapper/arg-source
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/arg-source,v
retrieving revision 1.19
diff -u -r1.19 arg-source
--- mk/wrapper/arg-source 14 Mar 2016 20:11:56 -0000 1.19
+++ mk/wrapper/arg-source 12 Sep 2016 12:01:01 -0000
@@ -50,9 +50,9 @@
arg="$1"; shift
case $arg in
##############################################################
- # Merge "-I /dir" into a single "-I/dir". Same for -L, -R.
+ # Merge "-I /dir" into a single "-I/dir". Same for -l, -L, -R.
##############################################################
- -[DILR])
+ -[lDILR])
nextarg="$1"; shift
case "$nextarg" in
-*) msg_log $wrapperlog "WARNING: [arg-source] An $arg option must not be followed by another option, $nextarg." ;;
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index