tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler/linker wrapper arguments with unusual whitespace



I'm working on packaging rustc-1.10.0, the current upstream bootstrap kit
calls the linker (the C compiler) with arguments like

-l library1

.

When invoked like this the wrappers strip out the '-l' argument, leaving
just the library names, which can not be found as files.

I currently have hacked up the wrappers to transmute this pattern to the
usual "-llibrary1" style, but I'm not confident that won't break things.

Patch attached.

Is the solution to adjust the wrappers or to get upstream to call the
linker more conventionally?

	Jonathan Kollasch
Index: pkgsrc/mk/wrapper/arg-source
===================================================================
RCS file: /cvsroot/pkgsrc/mk/wrapper/arg-source,v
retrieving revision 1.19
diff -d -u -a -p -r1.19 arg-source
--- pkgsrc/mk/wrapper/arg-source	14 Mar 2016 20:11:56 -0000	1.19
+++ pkgsrc/mk/wrapper/arg-source	16 Jul 2016 16:38:47 -0000
@@ -52,7 +52,7 @@ while $test $# -gt 0; do
 	##############################################################
 	# Merge "-I /dir" into a single "-I/dir".  Same for -L, -R.
 	##############################################################
-	-[DILR])
+	-[DILRl])
 		nextarg="$1"; shift
 		case "$nextarg" in
 		-*) msg_log $wrapperlog "WARNING: [arg-source] An $arg option must not be followed by another option, $nextarg." ;;


Home | Main Index | Thread Index | Old Index