Commit Graph

46 Commits

Author SHA1 Message Date
Thomas Petazzoni
0849e8193e package: remove useless arguments from GENTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
GENTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:09:58 +02:00
Peter Korsgaard
7dae68a0fa zlib: always build host version dynamically
Host libraries should always be built using dynamic linking, rather than
static if BR2_PREFER_STATIC_LIB is enabled, as that then breaks dependent
libraries expecting a shared library.

Reported-by: Andy Kennedy <andy.kennedy@adtran.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-07-20 23:51:17 +02:00
Thomas Petazzoni
7197089540 zlib: disable call to ldconfig
By default, zlib installation procedure calls ldconfig, which takes
time uselessly. ldconfig is only useful if you install libraries on
the host (in directories listed in /etc/ld.so.conf, or in /usr/lib or
/lib), so calling it after installing libraries in $(STAGING_DIR),
$(TARGET_DIR) or $(HOST_DIR) is just a lenghty no-op.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-01-26 16:46:49 +01:00
Peter Korsgaard
bab71ad4dd zlib: don't point libdir/includedir at staging
Fixes 'make install'.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-24 21:28:40 +01:00
Peter Korsgaard
ab2f5567c1 zlib: cleanup, fix install for static only build
Use 'make install' for installation, add a patch to make it work for
static only builds, and add uninstall/clean targets while we're at it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-24 16:23:12 +01:00
Lionel Landwerlin
3df6b56f53 zlib: Fix build
Using "make -j $(N)" with N > 1 sometimes breaks zlib build.

Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-20 09:21:24 +02:00
Paul Jones
d47c73ee9b zlib: Bump to 1.2.5
Closes #1981

Signed-off-by: Paul Jones <paul@pauljones.id.au>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-27 23:52:58 +02:00
Thomas Petazzoni
a55cd51b85 zlib: enable compilation on the host
zlib is needed on the host, to build xlib_libfontenc on the host, to
build xapp_mkfontscale on the host, in order to finally build xfonts
encodings on the target.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-23 20:08:11 +01:00
Lionel Landwerlin
5ad8ad0c37 zlib: fix headers installation in target directory
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-01-28 21:48:40 +01:00
Thomas Petazzoni
9e1d5ccd4d zlib: rework on top of the generic infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2009-12-15 19:57:30 +01:00
Peter Korsgaard
8ac5d34e78 zlib: fix typo
Fix typo introduced by 1e32e0700a (remove dedicated target-headers option).
Noticed by Alexander Clouter <alex@digriz.org.uk>.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-04 16:05:10 +02:00
Peter Korsgaard
1e32e0700a zlib: remove dedicated target-headers option
Instead, simply only copy headers/static lib if BR2_HAVE_DEVFILES
is enabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-10-03 23:03:05 +02:00
Michael Roth
72a119c84b zlib: Replace negative logic in Makefile with positive
Positive logic is easier to read and understand than something
like 'if not option=yes then foo else bar'.

Signed-off-by: Michael Roth <mroth@nessie.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-30 11:52:56 +02:00
Will Newton
422ce6536b package: Remove unnecessary dependencies on uclibc.
A C library will have been built by the toolchain makefiles, so there is no
need for packages to explicitly depend on uclibc.

Signed-off-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-09-03 20:22:38 +02:00
Peter Korsgaard
4a7bfd2775 package/: convert to DOWNLOAD helper 2009-01-16 11:42:52 +00:00
Hans-Christian Egtvedt
be866bfcbc zlib: install using cp instead of install for zlib libraries
This patch will install zlib keeping the symlinks. The usage of
$(INSTALL) here did not take into account symbolic links.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
2008-12-11 14:40:56 +00:00
Peter Korsgaard
8e436ee772 have zlib respect BR2_PREFER_STATIC_LIB
The ARM uClinux BFLT format apparently doesn't support shared libs nor
-fPIC.  So let's distinguish between shared and non shared builds by
having split rules for libz.a and libz.so based on BR2_PREFER_STATIC_LIB.

Signed-off-by: Nicolas Pitre <nico@cam.org>
2008-12-08 14:41:47 +00:00
Peter Korsgaard
ac1d92c425 package/: get rid of unneeded $(strip ..) 2008-12-08 08:15:27 +00:00
Thiago A. Corrêa
1830e8942f Fix zlib install broken by previous commit. Sorry 2008-10-31 16:37:01 +00:00
Thiago A. Corrêa
1bf91aa2a8 Make sure directories are created during install to STAGING_DIR and TARGET_DIR. Thanks to Thomas Petazzoni and Bernhard Reutner-Fischer. 2008-10-31 12:10:10 +00:00
Peter Korsgaard
60b5eee76e package: global largefile CFLAGS handling 2008-08-04 19:07:18 +00:00
Peter Korsgaard
a18bc39849 zlib: cleanup and fix -clean target 2008-07-17 13:19:54 +00:00
Bernhard Reutner-Fischer
14a71561a3 - just use the strip binary to avoid confusing libtool (quotes)
- use $(STRIPCMD) in packages to avoid clashes with $(STRIP)
2007-10-01 16:15:31 +00:00
Bernhard Reutner-Fischer
956d3eb78b - semicolon touchup. No other changes 2007-08-22 09:56:41 +00:00
Ulf Samuelsson
e4ead9c13c Remove switches if sstrip is run 2007-08-21 01:53:57 +00:00
Ulf Samuelsson
fc3fd8afd2 Use TARGET_CONFIGURE_ARGS in some packages lacking 2007-07-30 18:17:13 +00:00
Ulf Samuelsson
e1621a4a2a Use <package>_VERSION in all <package>.mk instead of <package>_VER 2007-07-11 14:06:06 +00:00
"Steven J. Hill"
9a4ca08e5f Remove usage of TARGET_LDFLAGS all together. Both TARGET_CFLAGS and TARGET_LDFLAGS are passed with the compilers and linker respectively so that we can pass CFLAGS and LDFLAGS on a per-package basis which was not possible previously and a number of packages failed to build. TARGET_CFLAGS usage in package makefiles will be removed next. 2007-07-06 04:26:32 +00:00
Bernhard Reutner-Fischer
2dd6b35498 - change download site to sourceforge 2007-06-29 08:18:13 +00:00
Bernhard Reutner-Fischer
933d5c60ef - improve the zlib-clean target 2007-06-25 09:07:08 +00:00
Bernhard Reutner-Fischer
2f92075db2 - make sure that TARGET_DIR/usr/lib exists 2007-06-25 09:01:53 +00:00
Bernhard Reutner-Fischer
41decaa9fe - install some more stuff that goes into staging_dir into the proper place.
First hunk of fixes for bug #1290
2007-04-16 18:51:20 +00:00
Eric Andersen
15177a6e95 yet more LDFLAGS handling fixups 2007-03-14 03:12:22 +00:00
Eric Andersen
85d7f6f05f fixup package LDFLAGS handling 2007-03-13 22:59:59 +00:00
Bernhard Reutner-Fischer
6e2823c1fa - add and use BR2_BZCAT config option. 2006-11-17 15:43:51 +00:00
Eric Andersen
7be3856489 fetch zlib from the cannonical site at zlib.net 2006-04-10 18:09:17 +00:00
Mike Frysinger
b915f4a31a use := instead of = for variables and make sure zlib builds with target cflags 2005-10-29 07:16:38 +00:00
Mike Frysinger
c12c4f05f1 touchup build process 2005-08-30 22:46:58 +00:00
Ned Ludd
2ade59720b - zlib prior to 1.2.3 improperly handled invalid data streams which could lead a denial of service or arbitrary code execution. Tavis Ormandy CAN-2005-2096 2005-07-29 02:36:31 +00:00
Eric Andersen
dadad95190 Thomas Lundquist writes:
If I understand you correctly, you want the ncurses development headers
on the target.

a patch for this (named target_headers.patch and includes similar
options for a few other libs in buildroot) can be found at:

http://www.zelow.no/floppyfw/download/Development/Patches/buildroot/

(a few packages there aswell)

it will add an option to put headers on target for ncurses, zlib and
openssl.



Thomas.
2005-07-12 19:53:12 +00:00
Eric Andersen
1d63e8a8d9 Make the sourceforge mirror site a config option, as sourceforge
mirrors tend to change, move, go down, etc from time to time.
2005-06-09 12:15:00 +00:00
Eric Andersen
061ec439af This patch updates the zlib package to build version 1.2.2. The
1.2.2 version of zlib fixes a security issue with zlib v.1.2.1.

http://bugs.uclibc.org/view.php?id=254
2005-05-16 17:27:51 +00:00
Eric Andersen
d06645d8ed There is no need to have a separate 'Makefile.in' file in the
general case, therefore, combine the toplevel Makefile options
such as setting TARGETS into the per-package *.mk file
2005-02-10 03:06:39 +00:00
Eric Andersen
bb05a9ad46 Make the TAR_VERBOSITY option a bit more sane 2004-10-09 21:19:47 +00:00
Mike Frysinger
3a7b488366 use $(TAR_VERBOSITY) 2004-10-09 19:05:40 +00:00
Eric Andersen
73f7be8290 Remove the old 'make' directory, and populate the new 'package'
directory.
2004-10-09 01:24:28 +00:00