summaryrefslogtreecommitdiff
path: root/bin/mklib
AgeCommit message (Collapse)Author
2010-02-28Fixed mklib to properly merge static libraries on darwin.Alex Weiss
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-02-22bin/mklib: Clear CDPATH to avoid damaging expand_archive outputKeith Packard
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 <keithp@keithp.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-20Cygwin build fix: Fix linkageJon TURNEY
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 <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-18Revert "Make mklib propogate all errors"Dan Nicholson
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.
2010-02-18mklib: remove unused -contents_of_archives(), add commentsBrian Paul
2010-02-18Make mklib propogate all errorsJon TURNEY
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-18mklib: Teach mklib to fail build if link fails on cygwinBrian Paul
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 551c96979e643b409535afe868c42cac0d2285ad)
2010-01-19mklib: Fix static library generation/installation on SolarisAlan Coopersmith
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 <alan.coopersmith@sun.com>
2010-01-08mklib: Extract archives into temporary directoriesDan Nicholson
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 <dbn.lists@gmail.com> Reported-and-Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
2009-12-30mklib: use a wrapper for arBrian Paul
2009-12-24mklib: put usage info into usage() functionBrian Paul
2009-12-24mklib: expand .a into .o files on FreeBSD, put common code into subroutinesBrian Paul
2009-12-20darwin: mklib: Use lipo rather than file to figure out architectures of ↵Jeremy Huddleston
object files
2009-08-04mklib: Ensure target directory exists for libraryDan Nicholson
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 <dbn.lists@gmail.com>
2009-06-08Cygwin build fixesJon TURNEY
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 <jon.turney@dronecode.org.uk>
2009-04-30mklib: replace if/expr with caseTormod Volden
Saves forking an expr for every object.
2009-04-30mesa: Prepend "-Wl," to linking optionsTormod Volden
Let mklib ignore -Wl options inside the object list when building static libraries
2009-03-25mklib improvements for SolarisAlan Coopersmith
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 <alan.coopersmith@sun.com>
2008-10-06mesa: fix static library constructionBrian Paul
If the .a is made of other .a files, extract the objects from the later.
2008-08-11Apple: Cleaned up some linking and dylib ids issuesJeremy Huddleston
2008-07-14mklib: don't version symbols when using --exportsJulien Cristau
Use the default version instead of one based on the library SONAME in the version script created by --exports.
2008-06-21Solaris port of Mesa 7.1 with autoconf supportAlan Coopersmith
Signed-off-by: Brian Paul <brian.paul@tungstengraphics.com>
2008-04-09Add support for dfbsd to mklib script.Hasso Tepper
2008-02-19Apple: Pulled in changes from Apple's patchset to allow mesa to build on ↵Jeremy Huddleston
darwin again (cherry picked from commit e70609b7b877dc0d8e67c958c453305e78f831df)
2008-02-07added -altopts to allow overriding all other optsAndy Skinner
2007-12-04Use -Bsymbolic for linking all shared objects.Michel Dänzer
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10132 . Also remove comment about SONAME, as SONAME only applies to shared libraries.
2007-09-28add support for LDFLAGS env varDan Nicholson
2007-06-22Use -pthread instead of -lpthread on FreeBSD.Eric Anholt
2007-05-08special case for -pthread (bug 10876)Brian
2007-03-27simplify .a suffixingBrian
2007-03-27remove static lib before building to make more bulletproofBernardo Innocenti
2006-11-10fix -noprefix option for Solaris (bug 7722)Brian Paul
2006-04-19updates for GNU/Hurd (bug 6657)Brian Paul
2006-04-18assorted AIX, IRIX fixes from Dan SchikoreBrian Paul
2006-04-14Use 'file' command in more places to determine the library ABI (IRIX, SunOS,Brian Paul
Darwin), removes need to pass in special -archopt flags. Restore the -dlopen flag afterall.
2006-04-13remove the -dlopen option. Always make both kinds of libs for AIX, Darwin.Brian Paul
2006-04-13Fixes for AIX, SunOS, Darwin. -dlopen flag to build dlopen()'able modulesBrian Paul
for AIX, Darwin. (Dan Schikore)
2006-04-05pass -m32 or -m64 to linker for SunOS as needed (bug 6484)Brian Paul
2006-03-30some comments for DarwinBrian Paul
2005-10-22Fix FreeBSD build by building libGL in the order desired, and doing a fix to myEric Anholt
mklib changes.
2005-10-21Darwin version fix (SF bug 1334274)Brian Paul
2005-10-18Attempt to fix libGL on FreeBSD, where the library was being built without anyEric Anholt
dependencies, breaking builds of third-party software.
2005-09-14remove .a file before creating new oneBrian Paul
2005-08-08Make the linux-dri-x86 builds work on x86-64 again. mklib nowIan Romanick
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.
2005-08-08Since this isn't a bash script, don't use function and instead inline the usageEric Anholt
into the one place that it's used.
2005-07-25Add license/copyright.Brian Paul
Add -h/--help option for usage. Minor clean-ups.
2005-07-25Added -linker option to mklib, used to specify a particular program forBrian Paul
linking, if relevant. Updated Makefiles to use -linker option instead of setting CC, CXX env vars.
2005-06-30fix Darwin dynamic lib namingBrian Paul
2005-03-03if building 32-bit objects in 64-bit environment, use -m32 flagBrian Paul
2004-11-29fixed OSF/1 shared lib problem (bug 1065260)Brian Paul