Commit graph

3 commits

Author SHA1 Message Date
jlam
e287e42e02 Rewrite wrapper scripts so that it is possible to add wrapper-specific
logic and caching in a more natural way.
2002-12-26 17:08:55 +00:00
jlam
cfaa1ad9ff The buildlink2 problems on non-NetBSD platform seem to be related to
correct manipulation of variables containing values with escaped
metacharacters by the shell.  The new code only does partial caching, which
doesn't cache "special" arguments that contain escaped metacharacters or
other oddly quoted values.  On certain platforms listed in _BLNK_CACHE_ALL
in bsd.buildlink2.mk, we do full caching, which has enormous speed benefits
since it avoids an extra sed invocation per "special" argument.

Known working platforms:

	MacOS X 10.1.5 (schmonz)
	MacOS X 10.2 (grant)
	NetBSD 1.6 [full caching] (jlam)
	OpenBSD (cjep)
	Solaris 8 (grant)
	Solaris 9 (salo)
2002-12-22 19:02:43 +00:00
jlam
d6df64f924 Allow for wrapper-specific transformations of arguments that occur after
the main transformations have been performed.

The ld wrapper can now accept "-Wl,*" arguments and transform them
appropriately by stripping of the -Wl and the commas.  This will obiviate
the need for logic in pkgsrc that strips away the "-Wl," depending on
whether the platform was a.out or ELF, and whether the individual package
chose to link using "cc" or "ld".
2002-09-23 01:11:39 +00:00