The NetBSD Project

CVS log for pkgsrc/mk/wrapper/transform-sunpro-cc

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / mk / wrapper

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Aug 22 20:48:37 2018 UTC (8 years, 2 months ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2, pkgsrc-2025Q1-base, pkgsrc-2025Q1, pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, HEAD
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -8 lines
Remove clauses 3,4 from TNF-only copyright blocks.

This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Feb 7 09:42:05 2012 UTC (14 years, 9 months ago) by shattered
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Transform -ggdb<level> to -g, too.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jun 17 12:58:28 2008 UTC (18 years, 5 months ago) by sketch
Branches: MAIN
CVS tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -1 lines
Add a bunch of supported options.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Nov 28 13:03:56 2007 UTC (18 years, 11 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -1 lines
sunpro doesn't need -lstdc++.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:45:49 2007 UTC (19 years ago) by rillig
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -1 lines
Sunpro doesn't need -rdynamic, since the linker is sensible by default.
This change also works around shells/scsh's broken check for -rdynamic.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Nov 1 14:31:03 2007 UTC (19 years ago) by rillig
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -1 lines
sunpro doesn't know -ggdb.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 9 11:27:33 2007 UTC (19 years, 5 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -4 lines
Added a slight variation of the patch provided in PR 36187 by Naoto
Morishima.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Feb 7 18:25:29 2007 UTC (19 years, 9 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1, jlam-pkgviews-base, jlam-pkgviews
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -3 lines
Added option handlers for all of -fPIC, -fpic, -KPIC, -kPIC,
-xcode=pic13 and -xcode=pic32, as suggested in PR 35555.

This also fixes and old bug where -fPIC (32 bit) had been translated to
-kpic (13 bit), but apparently that doesn't make a big difference in
practice.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Feb 6 20:33:51 2007 UTC (19 years, 9 months ago) by rillig
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -9 lines
Added a new variable wrapper_type to the wrappers, so that the
transformations can decide whether they happen in a C or a C++ compiler.
Now the wrappers don't depend on the basename of the executed compiler
wrapper anymore.

Fixes PR 35555.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Jan 17 13:19:47 2007 UTC (19 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +31 -6 lines
The sunpro wrapper needs to distinguish whether cc or CC is called in
some cases.

XXX: There should be more support in the infrastructure for this case.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Jan 14 18:56:25 2007 UTC (19 years, 10 months ago) by rillig
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -5 lines
Options to subprocesses like the assember must pass the transformations.
They are _not_ GCC warnings, although they start with -W.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 18 00:21:31 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2006Q4-base, pkgsrc-2006Q4
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -6 lines
Some of the SunPro compilers (cc, c89) cannot handle the -O0 and -O1
options. Some others (c99, CC) can. To avoid linker errors about
"illegal option -- 1", these options are converted to -xO0 and -xO1,
which work.

Committed during the freeze to avoid breakage of packages. The code that
passed the -O0 and -O1 options through is relatively new, so there may
not have shown packages that break because of this.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Dec 8 05:35:55 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -2 lines
The SunPro C++ compiler knows the -template=* option.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Dec 5 22:29:27 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -3 lines
SunPro knows the -mt option for enabling multi-threaded options.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Nov 30 12:49:57 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +81 -119 lines
Adjusted the indentation and the order of checks to match the other
files.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Nov 29 17:36:15 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -1 lines
The -E option should be passed to SunPro without a warning.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Nov 26 09:55:52 2006 UTC (19 years, 11 months ago) by rillig
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Renamed transform_pass_unknown to transform_pass_with_warning and added
transform_discard_with_warning.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Nov 11 07:50:28 2006 UTC (20 years ago) by rillig
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +88 -101 lines
Converted the SunPro wrapper to use the functions from wrapper-subr.sh.
Added some code to check for unknown options.

Reindented the file so that the compiler options are better visible.
They had been hidden by the massive block comments before. Also, every
option has got its own line so that one only needs to read the first
column to find the relevant code.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Nov 11 07:00:57 2006 UTC (20 years ago) by rillig
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -1 lines
Made the SunPro compiler understand gcc's -MM option for generating
Makefile dependencies.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Oct 26 07:01:46 2006 UTC (20 years ago) by rillig
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
-E is an alias for --export-dynamic, which the Solaris linker does not
understand, too.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Sep 17 18:46:00 2006 UTC (20 years, 2 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +14 -14 lines
Fixed the "unknown command" error messages for debug_log, which is a
variable, not a shell function.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 31 14:43:48 2006 UTC (20 years, 3 months ago) by jlam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +14 -14 lines
Use 'debug_log' instead of 'msg_log' so that these wrapper internals aren't
exposed unless WRAPPER_DEBUG is set to "yes".

Revision 1.2.2.1
Wed Jun 7 15:25:40 2006 UTC (20 years, 5 months ago) by tv
Branches: tv-derecurse
FILE REMOVED
Changes since revision 1.2: +1 -1 lines
EOL the tv-derecurse branch; it has become too outdated.  The last live
revision can be fetched at the tv-derecurse-eol tag.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 28 13:43:24 2005 UTC (20 years, 11 months ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-2005Q4-base, pkgsrc-2005Q4
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
The SunPro compiler does not understand the gcc-specific -pipe option,
but interprets it as -p -i -p -e:, and so discards the following
argument. Fixed by simply discarding that argument.

Revision 1.2.8.3: download - view: text, markup, annotated - select for diffs
Wed Aug 24 09:11:11 2005 UTC (21 years, 2 months ago) by salo
Branches: pkgsrc-2005Q2
Diff to: previous 1.2.8.2: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.8.2: +14 -2 lines
Pullup ticket 709 - requested by Grant Beattie
portability fixes for compiler wrapper

Revisions pulled up:
- pkgsrc/mk/wrapper/arg-pp-sunpro-cxx		1.1, 1.2
- pkgsrc/mk/wrapper/bsd.wrapper.mk		1.36, 1.37
- pkgsrc/mk/wrapper/transform-sunpro-cc		1.9

   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Tue Jul 26 07:36:54 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: bsd.wrapper.mk

   Log Message:
   icc 9.0 wants the same options as 8.1.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sat Aug 20 02:11:15 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   add -xnolibmopt after -fast to disable the use of libsunmath (until it
   can be sanely statically linked).
--
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sat Aug 20 14:37:53 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: bsd.wrapper.mk
   Added Files:
   	pkgsrc/mk/wrapper: arg-pp-sunpro-cxx

   Log Message:
   strip leading "-Qoption ld" from -R args for sunpro C++ compiler, to
   avoid duplicate "-Qoption ld" args when the -R args is later stripped.

   thanks to jlam@ for the hint.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sun Aug 21 02:39:52 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: arg-pp-sunpro-cxx

   Log Message:
   preserve -Qoption arg if the 2nd next arg isn't -R.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Aug 20 02:11:15 2005 UTC (21 years, 3 months ago) by grant
Branches: MAIN
CVS tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +14 -2 lines
add -xnolibmopt after -fast to disable the use of libsunmath (until it
can be sanely statically linked).

Revision 1.2.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 19 16:54:48 2005 UTC (21 years, 3 months ago) by salo
Branches: pkgsrc-2005Q2
Diff to: previous 1.2.8.1: preferred, colored; branchpoint 1.2: preferred, colored
Changes since revision 1.2.8.1: +33 -2 lines
Pullup ticket 692 - requested by Grant Beattie
SunPro compiler wrapper fixes

Revisions pulled up:
- pkgsrc/mk/wrapper/transform-sunpro-cc		1.5, 1.6, 1.7, 1.8

   Module Name:		pkgsrc
   Committed By:	rillig
   Date:		Wed Jul  6 14:29:04 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   Added the gcc option -fpermissive to the list of options that are ignored
   by the SunPro compiler.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Sat Aug 13 06:37:18 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   transform -Wl,-soname to -h for sunpro
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Thu Aug 18 05:02:53 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   drop -Wl,--export-dynamic, as Solaris ld(1) default behaviour is to
   export all dynamic symbols.
---
   Module Name:		pkgsrc
   Committed By:	grant
   Date:		Thu Aug 18 05:04:49 UTC 2005

   Modified Files:
   	pkgsrc/mk/wrapper: transform-sunpro-cc

   Log Message:
   pass through -f flags that sunpro understands verbatim, drop other -f*
   flags.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Aug 18 05:04:49 2005 UTC (21 years, 3 months ago) by grant
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -2 lines
pass through -f flags that sunpro understands verbatim, drop other -f*
flags.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Aug 18 05:02:53 2005 UTC (21 years, 3 months ago) by grant
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +10 -1 lines
drop -Wl,--export-dynamic, as Solaris ld(1) default behaviour is to
export all dynamic symbols.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Aug 13 06:37:18 2005 UTC (21 years, 3 months ago) by grant
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -1 lines
transform -Wl,-soname to -h for sunpro

Revision 1.2.8.1: download - view: text, markup, annotated - select for diffs
Fri Jul 29 07:33:59 2005 UTC (21 years, 3 months ago) by snj
Branches: pkgsrc-2005Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5 lines
Pullup ticket 629 - requested by grant beattie
infrastructure fixes for sunpro

Revisions pulled up:
- pkgsrc/mk/wrapper/transform-sunpro-cc	1.3-1.4

    Module Name:    pkgsrc
    Committed By:   grant
    Date:           Mon Jul  4 09:48:31 UTC 2005

    Modified Files:
            pkgsrc/mk/wrapper: transform-sunpro-cc

    Log Message:
    sunpro needs the -mt -lpthread arguments for POSIX threads according
    to cc(1). modify the -pthread transform accordingly.
----
    Module Name:    pkgsrc
    Committed By:   grant
    Date:           Tue Jul  5 08:45:25 UTC 2005

    Modified Files:
            pkgsrc/mk/wrapper: transform-sunpro-cc

    Log Message:
    ignore more gcc-specific arguments:

            -fomit-frame-pointer
            -fwriteable-strings
            -traditional

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jul 6 14:29:04 2005 UTC (21 years, 4 months ago) by rillig
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Added the gcc option -fpermissive to the list of options that are ignored
by the SunPro compiler.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jul 5 08:45:25 2005 UTC (21 years, 4 months ago) by grant
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
ignore more gcc-specific arguments:

	-fomit-frame-pointer
	-fwriteable-strings
	-traditional

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jul 4 09:48:31 2005 UTC (21 years, 4 months ago) by grant
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
sunpro needs the -mt -lpthread arguments for POSIX threads according
to cc(1). modify the -pthread transform accordingly.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 10 16:20:40 2004 UTC (22 years ago) by sketch
Branches: MAIN
CVS tags: tv-derecurse-merge, tv-derecurse-eol, tv-derecurse-base, pkgsrc-2005Q2-base, pkgsrc-2005Q1-base, pkgsrc-2005Q1, pkgsrc-2004Q4-base, pkgsrc-2004Q4
Branch point for: tv-derecurse, pkgsrc-2005Q2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -3 lines
SunPro understands -Wl,* and passes to the relevant backend, so don't bin it.

Fixes at least graphics/netpbm.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Sep 21 15:01:41 2004 UTC (22 years, 1 month ago) by jlam
Branches: MAIN
Initial commit of a new wrapper script framework that encapsulates
the non-buildlink-related code and moves it out of mk/buildlink3 into
mk/wrapper.  The buildlink3 code is modified to simply hook its
transformations into the wrapper script framework.

The wrapper script framework has some new features:

* Support automatically passing "ABI" flags to the compiler and linker
  depending on the value of ${ABI}.  Currently supports the SunPro
  compiler with ${ABI} == 64 and the MIPSPro compiler with ${ABI} as
  any of 32, n32, o32, and 64.

* making UnixWare GCC accept -rpath options and silently converting
  them into an appropriate LD_RUN_PATH

* Add cmd-sink-interix-gcc and cmd-sink-interix-ld that errors out
  when it sees -fpic/-fPIC and -shared/-Bshareable, respectively
  (requested by <tv>).

* Much improved debugging output.  It's possible to output the wrapper
  work log in-line with normal output by setting WRAPPER_LOG to
  "stderr".

Important differences in behaviour from the old buildlink3 code include:

* Only move the -l options to the end of the command line, leaving the
  -L options in-place.

* Extend the autodetection of the libtool mode to detect "compile" and
  "uninstall".

* Fix problem noted in both PR pkg/24760 and PR pkg/25500, where
  -L/usr/lib/* was being mangled improperly.

* Remove the top-level "buildlink" target; instead, make buildlinking
  occur as part of the "wrapper" target.

* mangle and sub-mangle are only meant to transform directories in
  -I, -L, and rpath options, so remove the lines in
  buildlink3/gen-transform.sh that transformed bare directories.

* Add the ability for the libtool wrapper to be called just to unwrap
  an existing libtool archive by running:

	libtool --mode=unwrap -o libfoo.la

  The old --fix-la syntax no longer works.


20040818
========
* Initial release of a new wrapper script framework that encapsulates
  the non-buildlink-related code and moves it out of mk/buildlink3.
  These features include:

   * making MIPSpro accept GCC options
   * making MIPSpro "ucode" accept GCC options
   * making SunPro accept GCC options
   * making "ld" accept -Wl,* options and silently removing the "-Wl,"
   * (NEW) making UnixWare GCC accept -rpath options and silently
     converting them into an appropriate LD_RUN_PATH

  One major benefit of this is that the buildlink3 code is now much
  tighter and easier to understand since it concerns itself solely
  with buildlink-related details.  I haven't yet optimized the wrapper
  cache, so the new wrapper scripts may take slightly longer to execute
  than the old buildlink3 wrapper scripts, but I'll be improving this
  over time.


20040821
========
* Move the inclusion of $cmd_sink outside of the main loop in wrapper.sh
  so that the $cmd_sink script can be used to globally scan and process
  the arguments.  Move the LD_RUN_PATH code to a cmd-sink-unixware-gcc
  script.  Garbage-collect the now unused export_vars-related code.

* Add cmd-sink-aix-xlc for AIX xlc that munges -Wl,-R* into an
  appropriate -blibpath option.

* Add cmd-sink-interix-gcc and cmd-sink-interix-ld that errors out
  when it sees -fpic/-fPIC and -shared/-Bshareable, respectively
  (requested by <tv>).

* Move the code that converts full paths to shared libraries into the
  "-Ldir -llib" equivalents from the buildlink3 code into wrapper/logic.
  Remove the same from bsd.buildlink3.mk and gen-transform.sh.

* Move the code that checks for absolute rpaths from the buildlink3
  code into wrapper/arg-source.  Remove the same from bsd.buildlink3.mk
  and gen-transform.sh.

* Only move the -l options to the end of the command line, leaving the
  -L options in-place.

* Add more debugging code.


20040824
========
* Fix quoting problems after arguments are transformed.  Remove the
  hack that was inserted that magically made almost everything work
  because we do it the right way now.

* Move the inclusion of $logic outside of the main loop in wrapper.sh
  so that the $logic script doesn't have to worry about underflowing
  the argument buffer.

* Encapsulate the loop in wrapper.sh that fills the argument buffer
  entirely within the arg-source script.

* Move from the logic script into the arg-source script the
  transformations that merge or split arguments.

* Fix bug where skipargs was effectively being ignored if it was more
  than 1.

* Handle the whitespace in transformations in the logic script that
  turn one library option into multiple library options, e.g.
  "-lreadline" -> "-ledit -ltermcap".

* Allow you to specify an environment variable WRAPPER_SKIP_TRANSFORM
  for whether you wish to skip the transformation step in the logic
  script.  This is intended for testing purposes.

* Added check_prog() and init_lib() functions to the shell code library
  to make it more reusable outside of the wrapper framework.

* Allow the msg_log() function to output to "stdout" or "stderr".  If
  you want to have all of the logging appear on the screen, then you
  can now set WRAPPER_LOG=stderr.

* Make some of the script components not overridable on a per-wrapper
  basis.

* Add a gen-transform.sh script that generates transformation sedfiles.
  The "transform" script is used to transform arguments, while the
  "untransform" script is used to unwrap files.  Move the no-rpath
  logic from buildlink3/gen-transform.sh into wrapper/gen-transform.sh
  since it's not buildlink3-specific.

* Check for a non-empty blibpath before adding the option in
  cmd-sink-aix-xlc.

* Extend the autodetection of the libtool mode to detect "compile" and
  "uninstall".

* Add a cmd-sink-libtool script that doesn't pass linker options to
  libtool unless we're in "link" mode.

* Set _USE_RPATH to "yes" for UnixWare so that the wrappers will see the
  rpath options and convert them to a LD_RUN_PATH definition.

* Add more debugging code.


20040826
========
* Rewrite buildlink3/gen-transform.sh to produce more precise sed commands.
  Drop some unused commands from the mini-language, and add a few more
  that are more restrictive in their scope.

* Fix problem where repeated options weren't properly handled by some
  of sed commands.  It's not enough that they're "global replace",
  since some patterns match separator characters before and after each
  option.  We must repeat those patterns twice to catch all instances
  correctly.

* Fix problem noted in both PR pkg/24760 and PR pkg/25500, where
  -L/usr/lib/* was being mangled improperly.

* Remove the top-level "buildlink" target; instead, make buildlinking
  occur as part of the "wrapper" target.

* Add more debugging code.


20040828
========
* Added a head_queue function to shell-lib that returns the head of the
  named queue without popping it off the front of the queue.

* Strip consecutive, repeated library options from the command line when
  we read it in the logic script.

* Be more careful about not underflowing the argument buffer.


20040906
========
* shell-lib was moved into pkgsrc/mk/scripts; correct references to that
  file in the wrapper code.

* Use opt-sub instead of sub-mangle when protecting -I/usr/include/*
  and -L/usr/lib/* from buildlink transformations.  This avoids adding
  lines that look like "-I-I..." in the transformation sedfiles.

* mangle and sub-mangle are only meant to transform directories in
  -I, -L, and rpath options, so remove the lines in
  buildlink3/gen-transform.sh that transformed bare directories.

* Fix bug in strip-slashdot where the "." wasn't backquoted and thus
  matched all characters instead of only the "." character.

* Change the libtool wrapper to use a modified buildcmd script that
  doesn't rearrange any of the arguments.  This should fix spurious
  problems where libtool doesn't understand how to parse the command
  line when the -l options are moved to the end of the argument list.

* Fix bug in the logic script where the $cachearg and $cachedarg
  weren't being properly set at all times, which caused the cache to
  contain the wrong transformed argument.


20040907
========
* Support automatically passing "ABI" flags to the compiler and linker
  depending on the value of ${ABI}.  Currently supports the SunPro
  compiler with ${ABI} == 64 and the MIPSPro compiler with ${ABI} as
  any of 32, n32, o32, and 64.

* Move back the code that splits absolute paths to shared libraries
  from arg-source back into logic.  This allows us to correctly skip
  splitting those paths based on the previous option.  Also add a
  sanity check that the library name in the split argument doesn't
  contain a "/" since shell globs are not as precise as REs.

* Don't transform the path given after --dynamic-linker (used by GNU
  ld for ELF linkage).

* Add the ability for the libtool wrapper to be called just to unwrap
  an existing libtool archive by running:

	libtool --mode=unwrap -o libfoo.la


20040914
========
* Add a loop in libtool-fix-la to ensure that all of the options listed
  in the dependency_libs lines of *.lai files are processed.  This fixes
  a buildlink3 leakage bug.

* Merge the gen-transform.sh scripts between buildlink3 and wrapper and
  place them all in wrapper.  This makes sense since the commands simply
  allow for many types of transformations, which buildlink3 takes
  advantage of, but there is nothing inherently buildlink-ish about
  those commands.

* Don't directly manipulate SUBST_SED.unwrap.  Instead, create the
  value of SUBST_SED.unwrap by combining several other variables
  (currently just _UNWRAP_SED) to ensure that the correct ordering is
  preserved.

* Correct some confusing debugging messages.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>