summaryrefslogtreecommitdiff
path: root/bin/mklib
AgeCommit message (Collapse)AuthorFilesLines
2010-03-12mklib: Fix amd64 builds on Solaris when using Sun compilersAlan Coopersmith1-4/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-02-28Fixed mklib to properly merge static libraries on darwin.Alex Weiss1-2/+10
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
2010-02-22bin/mklib: Clear CDPATH to avoid damaging expand_archive outputKeith Packard1-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 <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 TURNEY1-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 <jon.turney@dronecode.org.uk> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-02-18Revert "Make mklib propogate all errors"Dan Nicholson1-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.
2010-02-18mklib: remove unused -contents_of_archives(), add commentsBrian Paul1-21/+4
2010-02-18Make mklib propogate all errorsJon TURNEY1-0/+6
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 Paul1-0/+5
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 Coopersmith1-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 <alan.coopersmith@sun.com>
2010-01-08mklib: Extract archives into temporary directoriesDan Nicholson1-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 <dbn.lists@gmail.com> Reported-and-Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
2009-12-30mklib: use a wrapper for arBrian Paul1-50/+48
2009-12-24mklib: put usage info into usage() functionBrian Paul1-27/+33
2009-12-24mklib: expand .a into .o files on FreeBSD, put common code into subroutinesBrian Paul1-25/+64
2009-12-20darwin: mklib: Use lipo rather than file to figure out architectures of ↵Jeremy Huddleston1-16/+4
object files
2009-08-04mklib: Ensure target directory exists for libraryDan Nicholson1-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 <dbn.lists@gmail.com>
2009-06-08Cygwin build fixesJon TURNEY1-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 <jon.turney@dronecode.org.uk>
2009-04-30mklib: replace if/expr with caseTormod Volden1-12/+15
Saves forking an expr for every object.
2009-04-30mesa: Prepend "-Wl," to linking optionsTormod Volden1-0/+17
Let mklib ignore -Wl options inside the object list when building static libraries
2009-03-25mklib improvements for SolarisAlan Coopersmith1-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 <alan.coopersmith@sun.com>
2008-10-06mesa: fix static library constructionBrian Paul1-1/+23
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 Huddleston1-4/+16
2008-07-14mklib: don't version symbols when using --exportsJulien Cristau1-1/+1
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 Coopersmith1-6/+12
Signed-off-by: Brian Paul <brian.paul@tungstengraphics.com>
2008-04-09Add support for dfbsd to mklib script.Hasso Tepper1-1/+4
2008-02-19Apple: Pulled in changes from Apple's patchset to allow mesa to build on ↵Jeremy Huddleston1-11/+27
darwin again (cherry picked from commit e70609b7b877dc0d8e67c958c453305e78f831df)
2008-02-07added -altopts to allow overriding all other optsAndy Skinner1-1/+51
2007-12-04Use -Bsymbolic for linking all shared objects.Michel Dänzer1-2/+7
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 Nicholson1-12/+18
2007-06-22Use -pthread instead of -lpthread on FreeBSD.Eric Anholt1-0/+3
2007-05-08special case for -pthread (bug 10876)Brian1-0/+4
2007-03-27simplify .a suffixingBrian1-6/+6
2007-03-27remove static lib before building to make more bulletproofBernardo Innocenti1-0/+1
2006-11-10fix -noprefix option for Solaris (bug 7722)Brian Paul1-4/+11
2006-04-19updates for GNU/Hurd (bug 6657)Brian Paul1-4/+6
2006-04-18assorted AIX, IRIX fixes from Dan SchikoreBrian Paul1-29/+25
2006-04-14Use 'file' command in more places to determine the library ABI (IRIX, SunOS,Brian Paul1-43/+68
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 Paul1-33/+33
2006-04-13Fixes for AIX, SunOS, Darwin. -dlopen flag to build dlopen()'able modulesBrian Paul1-11/+51
for AIX, Darwin. (Dan Schikore)
2006-04-05pass -m32 or -m64 to linker for SunOS as needed (bug 6484)Brian Paul1-4/+22
2006-03-30some comments for DarwinBrian Paul1-0/+3
2005-10-22Fix FreeBSD build by building libGL in the order desired, and doing a fix to myEric Anholt1-1/+2
mklib changes.
2005-10-21Darwin version fix (SF bug 1334274)Brian Paul1-1/+1
2005-10-18Attempt to fix libGL on FreeBSD, where the library was being built without anyEric Anholt1-4/+16
dependencies, breaking builds of third-party software.
2005-09-14remove .a file before creating new oneBrian Paul1-4/+3
2005-08-08Make the linux-dri-x86 builds work on x86-64 again. mklib nowIan Romanick1-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.
2005-08-08Since this isn't a bash script, don't use function and instead inline the usageEric Anholt1-26/+20
into the one place that it's used.
2005-07-25Add license/copyright.Brian Paul1-44/+110
Add -h/--help option for usage. Minor clean-ups.
2005-07-25Added -linker option to mklib, used to specify a particular program forBrian Paul1-61/+39
linking, if relevant. Updated Makefiles to use -linker option instead of setting CC, CXX env vars.
2005-06-30fix Darwin dynamic lib namingBrian Paul1-1/+1
2005-03-03if building 32-bit objects in 64-bit environment, use -m32 flagBrian Paul1-0/+9