summaryrefslogtreecommitdiff
path: root/mk/buildlink3/gen-transform.sh
AgeCommit message (Collapse)AuthorFilesLines
2004-08-27Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,jlam1-6/+1
which are the full option names used to set rpath directives for the linker and the compiler, respectively. In places were we are invoking the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is inserted in case the flag is a word, e.g. -rpath. The default values of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the compiler that you use. They may be overridden on a ${OPSYS}-specific basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG, respectively. Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-10In the rpath transformations, also handle -Wl,@_OPSYS_RPATH_NAME@... injlam1-1/+6
case ${_OPSYS_RPATH_NAME} is something surprising, like "-L".
2004-06-04A couple packages (including the new boost) use "libfoo.so" as a directorytv1-11/+9
name -- this seems to be common among Jam-using packages. So, make sure to do the -L -l transform only if at the end of a word. This unfortunately doubles the number of regexes needed to match (one with $_sep, one with $). While here, though, the expressions for .so, .so.X, .so.X.Y, and .so.X.Y.Z can all be collapsed into only one set with the use of \(\.[0-9]\)*, so we actually end up with *less* regexes than before. :)
2004-03-13Indent.uebayasi1-5/+5
2004-03-12Put comments in order that make sense.jlam1-2/+2
2004-02-19According to the documentation on version numbering of shared libraries at:jlam1-7/+1
http://fink.sourceforge.net/doc/porting/shared.php It's okay to link against a name like "libqt.2.3.0.dylib" using "-lqt.2.3.0", which means we never need to do anything more than just strip the trailing ".dylib" from shared library names when converting from a full path to "-L... -l...". This should fix PR 24402.
2004-02-12Move a test from the reorderlibs script out to the wrapper scripts forjlam1-2/+2
efficiency reasons.
2004-02-12Add missing "$" that was causing the reorderlibs script to create ajlam1-2/+3
variable with an exponentially increasing size. Fixes infinite loop when building security/cyrus-saslauthd.
2004-02-12Modify the "no-rpath" to not need a "/" to start the rpath. Also modifyjlam1-18/+18
the "r" command to allow paths ending in "/". This should fix PR 24352.
2004-02-01How'd that -lb get there?jlam1-2/+2
2004-01-30Remove debugging line that I accidentally left there.jlam1-2/+1
2004-01-30Teach buildlink3 how to reorder libraries on the command line. Youjlam1-1/+68
specify library orderings with: BUILDLINK_TRANSFORM+= reorder:l:crypt:crypto The wrapper scripts then reorder the libraries so that -lcrypt will always come before -lcrypto. If there are lots of reorder:l:... commands, then the algorithm looks a bit like a topological sort.
2004-01-21Add a new command "sub-rpath" that does the same thing as "rpath" but onlyjlam1-1/+11
protects subdirectories of the named paths in rpath options to the linker. Use sub-rpath to protect /usr/lib/* in rpath options to the linker.
2004-01-21Rename 'submangle' to 'sub-mangle'jlam1-3/+3
2004-01-19* Make the mangle and depot commands a bit more conservative in findingjlam1-5/+39
instances of directory paths to mangle. We now check that the path is either a word by itself, or else part of likely compiler/linker options (-[ILR]). * Add a new "submangle" command that does the same thing as mangle but restricts itself to only the directory tree below the named src directory.
2004-01-19Create a word separator $_sep variable and use throughout.jlam1-34/+36
2004-01-17Be even less aggressive and just remove relative paths that start with "."jlam1-7/+7
in abs-rpath.
2004-01-17Fix overly aggressive substitution pattern in abs-rpath to allow thingsjlam1-7/+7
like "-Wl,-R${exec_prefix}/lib". This fixes any breakage in *-config scripts where the above example was being stripped out.
2004-01-13Add a new command "abs-rpath" to the gen-transform.sh script that removesjlam1-12/+22
rpath options that try to add relative paths to the runtime library search path. This basically partly cleans up after lazy programmers.
2004-01-11"for arg; do" -> "for arg do", as the latter is more portable. fixesgrant1-2/+2
buildlink3's wrappers on Solaris.
2004-01-07Remove "$" at the end of rules in the [IL] commands that mistakenly creptjlam1-4/+4
in when creating this file based on the one in buildlink2. This should fix the problem noted on tech-pkg@: "Re: graphics/gdk-pixbuf can't find <gdk/gdk.h> build problem" where the CFLAGS for glib were being eaten by the unbuildlink step.
2004-01-06Back out revision 1.6 which was wrong. It failed to matchjlam1-3/+5
-I/usr/pkg/include given I:/usr/pkg:...
2004-01-06Allow l:foo: to remove -lfoo. Also remove an incorrect rule in the "l"jlam1-4/+10
case.
2004-01-06Reduce the number of lines emitted by the I and L rules.jlam1-5/+3
2004-01-06Missing trailing $ to only match whole words.jlam1-2/+2
2004-01-03Extend the "l" command by allowing changing "-lfoo" into "-lbar -lbaz" byjlam1-5/+12
saying "l:foo:bar:baz".
2003-09-03Fix typo ;; -> :;jlam1-2/+2
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-0/+223
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk