summaryrefslogtreecommitdiffstats
path: root/bin/mklib
Commit message (Collapse)AuthorAgeFilesLines
* Cygwin: Adjust mklib so -linker and -cplusplus options are processed more ↵Jon TURNEY2010-09-011-6/+10
| | | | | | | | | | like they are for linux It looks like we were ignoring -linker when -noprefix wasn't present, and when -noprefix was present, -linker was mandatory and -cplusplus ignored. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Teach mklib/minstall to properly install libraries on cygwinJon TURNEY2010-09-011-0/+5
| | | | | | | | | | | | | | | | Teach mklib/minstall more about cygwin so libraries are properly installed Have mklib install the .dll into the lib/ staging directory as well Have minstall install the .dll into PREFIX/bin at the same time as installing the .dll.a link library into PREFIX/lib mklib uses a '-' rather than a '.' as the separator before the version number in library names on cygwin. Change the install globs so they match library names like that. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Change mklib not to report the full archname on cygwinJon TURNEY2010-09-011-2/+2
| | | | | | | | | Change mklib not to report the full archname when building a library for cygwin (which is something like 'CYGWIN_NT-5.1' or 'CYGWIN_NT-6.1-WOW64' and kind of confusing), but just 'CYGWIN'. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin: Have mklib exit with error code if link failsJon TURNEY2010-09-011-7/+2
| | | | | Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mklib: Fix amd64 builds on Solaris when using Sun compilersAlan Coopersmith2010-03-121-4/+7
| | | | Signed-off-by: Alan Coopersmith <[email protected]>
* Fixed mklib to properly merge static libraries on darwin.Alex Weiss2010-02-281-2/+10
| | | | Signed-off-by: Dan Nicholson <[email protected]>
* bin/mklib: Clear CDPATH to avoid damaging expand_archive outputKeith Packard2010-02-221-0/+4
| | | | | | | | | | | The bash 'cd' command tends to emit random stuff to stdout when the CDPATH variable is set, so clear it to keep extra filenames from being emitted from the expand_archive function, which would otherwise cause mklib to fail. Signed-off-by: Keith Packard <[email protected]> Reviewed-by: Dan Nicholson <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Cygwin build fix: Fix linkageJon TURNEY2010-02-201-1/+8
| | | | | | | | | | | | Fix the way we make static convenience libraries, such as libmesa.a, to be the same as linux etc. Putting archives inside archives doesn't make the objects inside the archive linkable, so use expand_archives() to get all the objects inside an archive out again before linking. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Revert "Make mklib propogate all errors"Dan Nicholson2010-02-181-8/+0
| | | | | | | | This reverts commit d6f55492af3cb82b0113fe6beac0f3494b6e2956. It's both not portable and not safe to trap & exit on ERR. This will need to use a more invasive approach that tests return code only for selected, important commands.
* mklib: remove unused -contents_of_archives(), add commentsBrian Paul2010-02-181-21/+4
|
* Make mklib propogate all errorsJon TURNEY2010-02-181-0/+6
| | | | | Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* mklib: Teach mklib to fail build if link fails on cygwinBrian Paul2010-02-181-0/+5
| | | | | | | Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]> (cherry picked from commit 551c96979e643b409535afe868c42cac0d2285ad)
* mklib: Fix static library generation/installation on SolarisAlan Coopersmith2010-01-191-1/+1
| | | | | | | | Change ar flag from -v (-verbose) to -c (silence console output) so that it stops causing make_ar_static_lib() to return a bunch of output other than the resulting library file. Signed-off-by: Alan Coopersmith <[email protected]>
* mklib: Extract archives into temporary directoriesDan Nicholson2010-01-081-5/+17
| | | | | | | | | | | | | | | | When static libraries are created from other archives, objects are extracted and then deleted when the static library is done. This can race when there are multiple static libraries being created from the same archives as with libmesa.a and libmesagallium.a. Should fix this issue with parallel jobs: make[5]: *** No rule to make target > `../../../../../../src/mesa/libmesagallium.a', needed by > `radeon_dri.so'. Stop Signed-off-by: Dan Nicholson <[email protected]> Reported-and-Tested-by: Sedat Dilek <[email protected]>
* mklib: use a wrapper for arBrian Paul2009-12-301-50/+48
|
* mklib: put usage info into usage() functionBrian Paul2009-12-241-27/+33
|
* mklib: expand .a into .o files on FreeBSD, put common code into subroutinesBrian Paul2009-12-241-25/+64
|
* darwin: mklib: Use lipo rather than file to figure out architectures of ↵Jeremy Huddleston2009-12-201-16/+4
| | | | object files
* mklib: Ensure target directory exists for libraryDan Nicholson2009-08-041-0/+1
| | | | | | | | Instead of relying on the Makefile to always generate $(TOP)/$(LIB_DIR), just have mklib handle creating the directory. This should fix any races when using parallel make. Signed-off-by: Dan Nicholson <[email protected]>
* Cygwin build fixesJon TURNEY2009-06-081-3/+16
| | | | | | | Fix mklib to deal with NOPREFIX and use --enable-auto-image-base for cygwin Teach configure.ac some basic facts about cygwin Signed-off-by: Jon TURNEY <[email protected]>
* mklib: replace if/expr with caseTormod Volden2009-04-301-12/+15
| | | | Saves forking an expr for every object.
* mesa: Prepend "-Wl," to linking optionsTormod Volden2009-04-301-0/+17
| | | | | Let mklib ignore -Wl options inside the object list when building static libraries
* mklib improvements for SolarisAlan Coopersmith2009-03-251-1/+27
| | | | | | | | | Move flags for linking standard C/C++ libraries from configure.ac to mklib Use -norunpath flag when linking with Sun C++ compiler Convert mklib -exports list into a linker mapfile Set FINAL_LIBS correctly when -noprefix is used Signed-off-by: Alan Coopersmith <[email protected]>
* mesa: fix static library constructionBrian Paul2008-10-061-1/+23
| | | | If the .a is made of other .a files, extract the objects from the later.
* Apple: Cleaned up some linking and dylib ids issuesJeremy Huddleston2008-08-111-4/+16
|
* mklib: don't version symbols when using --exportsJulien Cristau2008-07-141-1/+1
| | | | | Use the default version instead of one based on the library SONAME in the version script created by --exports.
* Solaris port of Mesa 7.1 with autoconf supportAlan Coopersmith2008-06-211-6/+12
| | | | Signed-off-by: Brian Paul <[email protected]>
* Add support for dfbsd to mklib script.Hasso Tepper2008-04-091-1/+4
|
* Apple: Pulled in changes from Apple's patchset to allow mesa to build on ↵Jeremy Huddleston2008-02-191-11/+27
| | | | | | darwin again (cherry picked from commit e70609b7b877dc0d8e67c958c453305e78f831df)
* added -altopts to allow overriding all other optsAndy Skinner2008-02-071-1/+51
|
* Use -Bsymbolic for linking all shared objects.Michel Dänzer2007-12-041-2/+7
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10132 . Also remove comment about SONAME, as SONAME only applies to shared libraries.
* add support for LDFLAGS env varDan Nicholson2007-09-281-12/+18
|
* Use -pthread instead of -lpthread on FreeBSD.Eric Anholt2007-06-221-0/+3
|
* special case for -pthread (bug 10876)Brian2007-05-081-0/+4
|
* simplify .a suffixingBrian2007-03-271-6/+6
|
* remove static lib before building to make more bulletproofBernardo Innocenti2007-03-271-0/+1
|
* fix -noprefix option for Solaris (bug 7722)Brian Paul2006-11-101-4/+11
|
* updates for GNU/Hurd (bug 6657)Brian Paul2006-04-191-4/+6
|
* assorted AIX, IRIX fixes from Dan SchikoreBrian Paul2006-04-181-29/+25
|
* Use 'file' command in more places to determine the library ABI (IRIX, SunOS,Brian Paul2006-04-141-43/+68
| | | | | Darwin), removes need to pass in special -archopt flags. Restore the -dlopen flag afterall.
* remove the -dlopen option. Always make both kinds of libs for AIX, Darwin.Brian Paul2006-04-131-33/+33
|
* Fixes for AIX, SunOS, Darwin. -dlopen flag to build dlopen()'able modulesBrian Paul2006-04-131-11/+51
| | | | for AIX, Darwin. (Dan Schikore)
* pass -m32 or -m64 to linker for SunOS as needed (bug 6484)Brian Paul2006-04-051-4/+22
|
* some comments for DarwinBrian Paul2006-03-301-0/+3
|
* Fix FreeBSD build by building libGL in the order desired, and doing a fix to myEric Anholt2005-10-221-1/+2
| | | | mklib changes.
* Darwin version fix (SF bug 1334274)Brian Paul2005-10-211-1/+1
|
* Attempt to fix libGL on FreeBSD, where the library was being built without anyEric Anholt2005-10-181-4/+16
| | | | dependencies, breaking builds of third-party software.
* remove .a file before creating new oneBrian Paul2005-09-141-4/+3
|
* Make the linux-dri-x86 builds work on x86-64 again. mklib nowIan Romanick2005-08-081-0/+9
| | | | | | determines the bits (either 32 or 64) for libraries without the lib prefix. progs/egl/Makefile passes CFLAGS on the link commands so that things like '-m32' get propagated.
* Since this isn't a bash script, don't use function and instead inline the usageEric Anholt2005-08-081-26/+20
| | | | into the one place that it's used.