Commit Graph

296 Commits

Author SHA1 Message Date
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
mbalmer aa94cc597c Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.
2010-10-31 11:52:50 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
lukem 6405962d8a When extracting separate debug symbols with MKDEBUG, there's no need
to leave the original file unstripped...
2010-04-24 07:57:04 +00:00
darran 61fb3737eb DTrace: Add CTF generation to the make framework. Only enabled when
MKDTRACE=yes.
2010-03-02 20:49:18 +00:00