Juan RP
a85a1a145a
configure: use static libxbps from topdir not from DESTDIR.
2011-06-04 13:53:16 +02:00
Juan RP
9673c4bd09
XBPS major changes in June 2011.
...
- A configuration file "xbps-conf.plist" replaces the (un)register target
in xbps-repo(8) and (un)set-prop in xbps-bin(8). For now, you can set
the repositories and prefered virtual packages.
- New package pattern matching code from NetBSD. Supports more ways of
matching patterns in packages.
- Multiple bugs fixed in virtual packages related matching code.
--HG--
rename : LICENSE => COPYING
2011-06-04 13:37:53 +02:00
Juan RP
35dc0aa5ad
configure: build with -pthread unconditionally, don't test for -pipe or -D_FORTIFY_SOURCE.
2011-02-27 15:44:44 +01:00
Juan RP
777a91f62a
configure: test correctly PIE and PIC flags, remove -O2 which errors out on pcc.
2011-02-24 16:22:09 +01:00
Juan RP
17be7bab81
configure: misc compiler flags fixes.
...
- Don't use -Wp, some compilers don't understand it. Simply use -D__BLAH___.
- Check for -Wl,--export-dynamic and if that fails try -rdynamic.
2011-02-24 15:33:53 +01:00
Juan RP
be5ff1d934
Don't build code with _GNU_SOURCE, use _XOPEN_SOURCE=500 instead.
...
_GNU_SOURCE is only now for xbps_xasprintf() if vasprintf is found,
and only for <stdio.h>, it's unset immediately once the header is included.
2011-01-25 13:00:23 +01:00
Juan RP
64cd7cf0a4
configure: use a var with the function name to test.
2011-01-25 12:42:34 +01:00
Juan RP
81fa8da4ce
Check for vasprintf() and add a replacement if it wasn't found.
2011-01-25 12:39:05 +01:00
Juan RP
fcbe7f113b
Don't build static bins with PIE, only for dynamic.
2011-01-19 16:52:55 +01:00
Juan RP
8dc6926664
configure: fixes for building with an installed static libxbps.
2011-01-19 14:45:58 +01:00
Juan RP
0fe503b7f4
configure: -Wformat-security and -Wformat-nonliteral are included in -Wformat=2.
2011-01-15 14:02:34 +01:00
Juan RP
84f04fb6c4
configure: build with -O2 and -pipe if supported.
2011-01-15 13:36:46 +01:00
Juan RP
3482e68491
configure: make symbol visibility dependent in the configure test, misc changes.
2011-01-15 12:21:38 +01:00
Juan RP
6051eb29ab
Added another bunch of compiler warnings and fix code.
2011-01-15 11:59:44 +01:00
Juan RP
d9001adbad
configure: added --silent option to hide compilation details.
2011-01-15 10:49:35 +01:00
Juan RP
4420bd9427
Really enable the compiler detected flags into its correct var.
2011-01-15 10:41:35 +01:00
Juan RP
33c1a33912
Make configure detect required libraries to link.
2011-01-14 00:30:49 +01:00
Juan RP
2206b27037
Added "--with-external-libfetch" to build against external libfetch.
2011-01-12 17:06:53 +01:00
Juan RP
cb8464bdc6
configure: respect CFLAGS/LDFLAGS passed via env.
2011-01-11 15:04:23 +01:00
Juan RP
cdecb7f793
configure: also check if compiler supports _FORTIFY_SOURCE=2.
2010-12-24 02:36:16 +01:00
Juan RP
8013448097
configure: fix a typo that broke strlcat test. Found by Min Sik Kim reported in issue 2.
2010-12-10 16:25:28 +01:00
Juan RP
992583311b
configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc.
2010-10-27 00:19:02 +02:00
Juan RP
f888b582f9
Added a configure script to emulate GNU autoconf and related changes.
...
Changes included in this set:
* Added strlcat() and strlcpy() from OpenBSD, always use them if the
system does not have them built in.
* Changed an array of PATH_MAX size allocated in the stack, to a dynamically
allocated buffer from heap. This should reduce memory usage a bit.
* Simplify code that implemented a homegrown realpath(3) implementation,
simply use realpath(3).
* If compiler supports -fstack-protector, build all code with
-D_FORTIFY_SOURCE=2 and --param ssp-buffer-size=1 so that all
buffers are protected.
2010-05-19 22:38:27 +02:00