christos
c90b9921a5
unbound additions
2016-08-20 11:21:50 +00:00
joerg
a3bc99b827
If the per-target LDSTATIC flag is set, don't include the PIE linker
...
flags as we currently don't support static PIE.
2016-04-04 15:06:16 +00:00
martin
cb4d6b868c
Pass -pie to cc, not -Wl,-pie. This way we have a chance to fix specs
...
for obscure corner cases like -pie -fPIE -static (used for
/usr/tests/lib/csu/h_initfini2 if building with MKPIE=yes).
While there also replace -fPIC with -fPIE for the PIE case, even if
it should be mostly equivalent.
2016-03-30 13:05:09 +00:00
mrg
e2bee4685a
remove conditionals that are always true with GCC >= 4.8.
2016-03-12 23:08:58 +00:00
christos
6c0101debe
Add NODEBUG
2016-02-21 03:34:27 +00:00
christos
dc084e400e
Introduce NOPIE and NOCTF so that standalone programs build properly.
2016-01-31 15:30:14 +00:00
christos
ffeb8dbf4e
Define _KERNTYPES for things that need it.
2016-01-23 21:22:45 +00:00
joerg
0bc53a588b
LIBEXECINFO
2015-11-07 23:41:58 +00:00
matt
6811dc67f2
Make LIBCRT* depend on the right files if MLIBDIR from MKCOMPAT is defined.
2015-06-07 15:04:28 +00:00
erh
6830ef879f
PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
...
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.
2014-12-01 01:34:30 +00:00
ozaki-r
1339b2cc13
Add MKCTF
...
This variable separates CTF stuffs from MKDTRACE; we can build DTrace
solely without building and using them. This allows us to use DTrace
even if CTF stuffs have problems (actually they have now).
This variable would be merged into MKDTRACE eventually, once CTF stuffs
work correctly again.
2014-03-25 09:52:55 +00:00
christos
199409cf03
let's see if the new dwarf library can handle dwarf 4
2014-03-09 18:00:51 +00:00
christos
aca5beab65
If we are compiling with -g and using gcc4.8 and dtrace downgrade
...
dwarf generation to version 2 for now.
2014-03-02 22:22:05 +00:00
joerg
937a61eb8d
-Wl,-pie and -r don't agree with each other, so filter the former out.
2014-01-15 13:59:38 +00:00
joerg
d0f0da0f65
Relink binaries if crti.o changes.
2013-11-11 10:24:53 +00:00
christos
986a0d2f80
Add libxcb
2013-09-29 14:36:25 +00:00
mrg
f8cebe2a9e
add LIBX11_XCB; unfortunately since the library is named with a -
...
in it, we have to use an ugly hard coded assignment for now.
(could be cleaned up with more make variable magic i'm sure.)
2013-05-31 06:48:43 +00:00
christos
07a6c80766
ldopts should be before ldadd like everywhere else.
2013-04-04 21:14:36 +00:00
christos
fbf6778a1b
Since the libraries are produced with different MK flags than the programs,
...
we check for existance of the files instead of the MK flags.
2013-02-14 03:02:47 +00:00
christos
4880aaed67
Add PROGDPLIBS
2013-02-14 01:58:00 +00:00
christos
08c1bf572c
CTFCONVERT me harder.
2013-01-26 21:49:20 +00:00
christos
aa675a73cf
Now that we have separate debug sets, add -g if ${MKDEBUG} is set for
...
program builds since we don't need to install that symbol files.
2013-01-17 15:42:59 +00:00
jmmv
fcb81e1f92
Allow DPADD to be specified on a per-program basis.
2012-08-24 20:26:24 +00:00
joerg
067600c8cf
Revert last, it breaks the tricks xsrc uses.
2012-08-23 21:21:14 +00:00
joerg
8e96262375
Remove SHLIBINSTALLDIR and SHLINKINSTALLLIBDIR. Add rpath entries, if
...
SHLIBDIR differs from /usr/lib.
2012-08-23 15:45:02 +00:00
christos
eda981fc36
add MKRUMP by popular demand.
2012-08-08 13:56:13 +00:00
tron
df92d05dec
Move "libexpat" from X11 into base which fixes PR lib/40346.
...
This change was approved by the Core Group.
2012-02-29 20:07:51 +00:00
matt
f5d3f68d54
Remove another ${SIZE}
2012-02-21 01:41:09 +00:00
matt
0bf8cdb842
Remove ${SIZE}
2012-02-20 18:23:50 +00:00
matt
47c982a38d
Add support for --combine with gcc.
2012-02-19 23:19:37 +00:00
christos
50a5b513a2
Add libtre
2011-11-05 22:56:30 +00:00
christos
fa86ae90df
- no need to special-case libraries with weird characters.
...
- add a note about adding new libraries.
2011-10-16 01:24:05 +00:00
christos
c4fb05f751
fix list of libraries to reflect reality.
2011-10-16 01:14:33 +00:00
apb
386a389aab
Move all "clean" and "cleandir" processing to a new bsd.clean.mk
...
file, as proposed in tech-toolchain.
2011-09-10 16:57:35 +00:00
joerg
ba5a5a1119
Add new "analyze" command to run clang's static analyzer in a directory
...
on all C/C++ files.
2011-08-27 18:35:19 +00:00
he
ae7d1665f4
The new Heimdal adds -lwind and -lheimbase to the set of libraries,
...
so define the corresponding LIB* variables.
These are also needed in the PAM_STATIC_* variables, so add them there too.
2011-04-26 08:22:17 +00:00
joerg
5e3fd2e02b
Adjust --sysroot related usage:
...
-Wl,-rpath does not expand =, so just drop it.
Drop -Wl,-rpath-link entries that duplicate the -Wl,-rpath entries, this
is done implicitly now that ld is built with sysroot support.
Use ${DESTDIR} explicitly for the remaining -Wl,-rpath-link entries.
2011-04-11 23:03:38 +00:00
joerg
c28ff146c9
For USETOOLS=yes, use the --sysroot support of the compiler to cut down
...
the number of hard-coded pathes and magic invocations.
2011-04-10 16:52:36 +00:00
jmmv
8de5cd3354
Revert previous (revision 1.261): it broke the build because PROG_CXX is
...
defined in terms of PROG, so later on we would end up with target duplicates
because both PROG_CXX and PROG were being converted to PROGS_CXX and PROGS.
Did not catch this earlier because the test build I did was not clean and
thus the duplicate targets did not have nasty effects.
2011-03-08 07:53:43 +00:00
jmmv
18b629ec58
Always convert PROG to its plural form independently of whether PROG_CXX
...
is defined or not. From Garrett Cooper in private mail.
2011-03-07 19:05:03 +00:00
jmmv
07be9009b6
Define LIBATF_C and LIBATF_CXX to point to their corresponding .a files and
...
use these to properly set DPADD for test programs.
2011-02-20 20:16:01 +00:00
christos
efe059951d
add saslc
2011-02-13 00:42:45 +00:00
joerg
afe7317d58
Don't use -nostdinc or -nostdinc++ if this is included in a HOSTLIB.
2011-02-06 01:08:37 +00:00
pooka
14c8789b8c
Add rump bits to DPSRCS so that update builds work correctly.
2011-01-17 18:05:52 +00:00
pooka
43673c5e38
befriend RUMPPRG with CRUNCHEDPRG
2010-12-13 21:47:04 +00:00
pooka
84d9317cb6
Define RUMPPRG, which is just like PROG, except it additionally
...
builds a rump client with the name rump.${PROG}. The rump client
is not installed suid/sgid by default even if BINMODE is defined.
2010-12-13 17:22:26 +00:00
joerg
f360555e8a
Revert last, gcc(1) checks explicitly for -r on some platforms to disable
...
passing down --relax as well.
2010-12-10 20:08:17 +00:00
joerg
49755c474a
gcc passes down -r directly to ld, so make it explicitly a linker option.
2010-12-08 02:04:13 +00:00
joerg
d9da1368fc
Don't depend on ${CC} passing down -R to ld, use -Wl,-rpath explicitly.
2010-12-08 01:57:22 +00:00
lukem
44f36b23ab
Preserve date on original shared library or program when stripping
...
the debug symbols and adding the debug-link to .debug.
Use '(rm -f file; false)' in the failure path to force failure.
Based on solution proposed by Nicolas Joly on tech-toolchain in July 2010.
Should fix PR toolchain/44046 from Andreas Gustafsson.
2010-11-08 06:54:52 +00:00