summaryrefslogtreecommitdiffstats
path: root/bin/mklib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add license/copyright.Brian Paul2005-07-251-44/+110
| | | | | Add -h/--help option for usage. Minor clean-ups.
* Added -linker option to mklib, used to specify a particular program forBrian Paul2005-07-251-61/+39
| | | | | linking, if relevant. Updated Makefiles to use -linker option instead of setting CC, CXX env vars.
* fix Darwin dynamic lib namingBrian Paul2005-06-301-1/+1
|
* if building 32-bit objects in 64-bit environment, use -m32 flagBrian Paul2005-03-031-0/+9
|