aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* build: remove the option to build gnugrepKyle Evans2020-12-251-4/+0
| | | | | | | | | Unconditionally install bsdgrep as grep, bootstrap or not. Remove all build glue and stop installing both gnugrep and libgnuregex now that all consumers of the latter are gone. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D27732
* Remove additional GDB leftovers missed in r368667Ed Maste2020-12-151-1/+1
| | | | Notes: svn path=/head/; revision=368669
* gnu: don't build libgnuregex for WITH_GNU_GREP_COMPATKyle Evans2020-12-041-2/+1
| | | | | | | | | bsdgrep switched over to libregex back in r363823 to fill WITH_GNU_GREP_COMPAT, since libgnuregex in base is quite buggy and libregex is somewhat functional. Don't build libgnuregex on our account, please. Notes: svn path=/head/; revision=368333
* remove GCC 4.2.1 build infrastructureEd Maste2020-02-291-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As described in Warner's email message[1] to the FreeBSD-arch mailing list we have reached GCC 4.2.1's retirement date. At this time all supported architectures either use in-tree Clang, or rely on external toolchain (i.e., a contemporary GCC version from ports). GCC 4.2.1 was released July 18, 2007 and was imported into FreeBSD later that year, in r171825. GCC has served us well, but version 4.2.1 is obsolete and not used by default on any architecture in FreeBSD. It does not support modern C and does not support arm64 or RISC-V. Thanks to everyone responsible for maintaining, updating, and testing GCC in the FreeBSD base system over the years. So long, and thanks for all the fish. [1] https://lists.freebsd.org/pipermail/freebsd-arch/2020-January/019823.html PR: 228919 Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23124 Notes: svn path=/head/; revision=358454
* retire BSD_CRTBEGIN optionEd Maste2020-01-311-4/+0
| | | | | | | | | | | | | | | | BSD crt is currently used on all architectures (other than sparc64). Remove the option and use BSD crt everywhere as part of the GCC 4.2.1 retirement plan. https://lists.freebsd.org/pipermail/freebsd-arch/2020-January/019823.html PR: 239851 Reviewed by: andrew, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23122 Notes: svn path=/head/; revision=357338
* Retire build support for GCC's DWARF unwinderEd Maste2020-01-081-4/+0
| | | | | | | | | | | As of r356514 LLVM's libunwind is used as the DWARF unwinder on all supported CPU architectures, and GCC and its libraries will be removed soon. Retire the build infrastructure for GCC's unwinder; from here if there are any unwinder bugs (on any arch) the path forward is to fix LLVM's libunwind. Notes: svn path=/head/; revision=356517
* Provide libssp based on libcKyle Evans2020-01-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | For libssp.so, rebuild stack_protector.c with FORTIFY_SOURCE stubs that just abort built into it. For libssp_nonshared.a, steal stack_protector_compat.c from ^/lib/libc/secure and massage it to maintain that __stack_chk_fail_local is a hidden symbol. libssp is now built unconditionally regardless of {WITH,WITHOUT}_SSP in the build environment, and the gcclibs version has been disconnected from the build in favor of this one. PR: 242950 (exp-run) Reviewed by: kib, emaste, pfg, Oliver Pinter (earlier version) Also discussed with: kan MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D22943 Notes: svn path=/head/; revision=356356
* Connect lib/libomp to the build.Dimitry Andric2019-03-161-1/+4
| | | | | | | | | | | | | | | | * Set MK_OPENMP to yes by default only on amd64, for now. * Bump __FreeBSD_version to signal this addition. * Ensure gcc's conflicting omp.h is not installed if MK_OPENMP is yes. * Update OptionalObsoleteFiles.inc to cope with the conflicting omp.h. * Regenerate src.conf(5) with new WITH/WITHOUT fragments. Relnotes: yes PR: 236062 MFC after: 1 month X-MFC-With: r344779 Notes: svn path=/head/; revision=345236
* Implement a BSD licensed crtbegin/crtendAndrew Turner2018-10-251-1/+5
| | | | | | | | | | | | | | | | | These are needed for .ctors/.dtors and .jcr handling. The former needs all the function pointers to be called in the correct order from the .init/.fini section. The latter just needs to call a gcj specific function if it exists with a pointer to the start of the .jcr section. This is currently disabled until __dso_handle support is added. Reviewed by: emaste MFC after: 1 month Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17587 Notes: svn path=/head/; revision=339738
* Remove libreadline from the source tree, all consumers but gdbBaptiste Daroussin2018-02-061-1/+0
| | | | | | | | | | | | | has been switched to libedit long ago, libreadline was built as an internallib for a while and kept only for gdbtui which was broken using libreadline. Since gdb has been mostly deorbitted in all arches, gdbtui was only installed on arm and sparc64, given it has been removed, gdb has been switched to use libedit, no consumers are left for libreadline. Thus this removal Notes: svn path=/head/; revision=328928
* GNU diff is done and GNU diff3 is not using libgnuregex, so no need toBaptiste Daroussin2017-04-201-2/+2
| | | | | | | condition the build of libgnuregex anymore on WITHOUT_GNU_DIFF Notes: svn path=/head/; revision=317211
* Only build libreadline for gdb, binutils actually does not need itBaptiste Daroussin2017-04-201-4/+1
| | | | Notes: svn path=/head/; revision=317210
* Connect new LLVM-based libgcc_eh & libgcc_s to the buildEd Maste2016-11-041-2/+4
| | | | | | | | | | | | | | | Compiler-rt and LLVM's libunwind provide a suitable replacement for libgcc.a, libgcc_eh.a, and libgcc_s.so. Remove the now-unused LLVM_LIBUNWIND block from gnu/lib/libgcc. PR: 213480 [exp-run] Reviewed by: brooks, ed Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8189 Notes: svn path=/head/; revision=308308
* Correct typo in r307679: the variable is MK_GNU_GREP_COMPATEd Maste2016-10-201-1/+1
| | | | Notes: svn path=/head/; revision=307683
* Build libgnuregex only if necessary for other componentsEd Maste2016-10-201-1/+5
| | | | | | | | Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D8298 Notes: svn path=/head/; revision=307679
* Put each SUBDIR on a separate line for ease of maintenanceEd Maste2016-10-191-1/+3
| | | | | | | | | Additional patches to this file are in progress, and having each SUBDIR entry on a separate line makes it easier to change the order in which the patches are reviewed, tested, and applied. Notes: svn path=/head/; revision=307656
* Switch gnu/lib/Makefile to SUBDIR.${MK_*} optional subdir styleEd Maste2016-10-191-12/+3
| | | | | | | Compound conditions are left unchanged Notes: svn path=/head/; revision=307652
* Don't build libdialog if WITHOUT_DIALOG is setEd Maste2016-10-031-1/+3
| | | | | | | X-MFC-With: r306375 Notes: svn path=/head/; revision=306648
* Add more SUBDIR_PARALLEL.Bryan Drewery2015-10-151-0/+3
| | | | | | | | MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289393
* - Record dependencies of gdb/gdbtui/kgdb on binutils/lib{bfd,iberty,opcodes},Marius Strobl2015-07-191-1/+1
| | | | | | | | | | | fixing parallel builds. - Don't build gdb/gdbtui/kgdb or libreadline when MK_BINUTILS is "no" for obvious reasons. MFC after: 3 days Notes: svn path=/head/; revision=285684
* ntp is now again libreadline free, so only build libreadline for gdbBaptiste Daroussin2015-05-251-1/+1
| | | | Notes: svn path=/head/; revision=283543
* Unbreak build where WANT_GDB == "no', as libreadline is also used by ntpdc.Mark Murray2015-05-251-1/+1
| | | | Notes: svn path=/head/; revision=283517
* Only build libreadline if gdb is going to be builtBaptiste Daroussin2015-05-181-1/+5
| | | | | | | gdb is the only consumer of libreadline which is an INTERNALLIB Notes: svn path=/head/; revision=283065
* Build libgcov only if we're building base system GCCEd Maste2015-05-181-2/+2
| | | | | | | | | | | Clang uses compiler-rt for the code coverage runtime, and ports GCC provides its own libgcov. PR: 200203 (exp-run) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=283060
* Build libgomp only if we're also building base system GCCEd Maste2015-05-151-1/+5
| | | | | | | | | | | | | | | | Clang's OpenMP support will emit Intel OpenMP API library calls, and will therefore require libiomp (or whatever name is settled on). An up-to-date version of libgomp is included in ports or pkg GCC. Thus, there is no reason to build base libgomp without base system GCC. PR: 199979 (exp-run) Reviewed by: pfg Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2459 Notes: svn path=/head/; revision=282973
* Make MK_GNUCXX mean "build the libstdc++ and libsupc++ libraries" andWarner Losh2014-07-101-1/+1
| | | | | | | | | | nothing more. Force it to be "no" when MK_CXX is "no" to simplify usage. It no longer also means "build g++" since we no longer have a platform where that's interesting now that pc98 no longer needs clang and gcc, but not g++. pc98 now just uses clang after boot2 changes. Notes: svn path=/head/; revision=268508
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* Add placeholder Kyuafiles for various top-level hierarchies.Julio Merino2014-04-211-0/+4
| | | | | | | | | | | | | | | This change adds tests/ directories in the source tree to create various subdirectories in /usr/tests/ and to install placeholder Kyuafiles for them. the relevant hierarchies are: cddl, etc, games, gnu and secure. The reason for this is to simplify the addition of new test programs for utilities or libraries under any of these directories. Doing so on a case by case basis is unnecessary and is quite an obscure process. Notes: svn path=/head/; revision=264741
* It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sureWarner Losh2014-04-011-1/+1
| | | | | | | MK_CXX isn't "no" before building these libraries. Notes: svn path=/head/; revision=263991
* On platforms where clang is the default compiler, don't build gcc or libstdc++.David Chisnall2013-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ... Notes: svn path=/head/; revision=255321
* Don't recurse into libssp when MK_SSP is set to no.Marcel Moolenaar2012-05-211-1/+5
| | | | Notes: svn path=/head/; revision=235727
* libodialog: disconnect from the build and obsolete.Max Khon2011-11-241-2/+1
| | | | Notes: svn path=/head/; revision=227951
* Remove libobjc and other Objective-C related components, as these areDimitry Andric2011-04-171-4/+0
| | | | | | | | | extremely outdated, and not used by anything in the base system. Silence from: current@ Notes: svn path=/head/; revision=220755
* Update dialog to version 20100428. This changes the license under whichNathan Whitehorn2011-01-121-1/+2
| | | | | | | | | | | | | | | | dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new features and a new and better libdialog API. The existing libdialog will be kept temporarily as libodialog for compatibility purposes until sade, sysinstall and tzsetup have been either updated or replaced. __FreeBSD_version is now 900030. Discussed on: -current Approved by: core Obtained from: http://invisible-island.net/dialog Notes: svn path=/head/; revision=217309
* Enable GCC stack protection (aka Propolice) for userland:Ruslan Ermilov2008-06-251-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org> Notes: svn path=/head/; revision=180012
* Update bmake glue to build GCC 4.2.Alexander Kabaev2007-05-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Also: Switch FreeBSD to use libgcc_s.so.1. Use dl_iterate_phdr to locate shared objects' exception frame info instead of depending on older register_frame_info machinery. This allows us to avoid depending on libgcc_s.so.1 in binaries that do not use exception handling directly. As an additional benefit it breaks circular libc <=> libgcc_s.so.1 dependency too. Build newly added libgomp.so.1 library, the runtime support bits for OpenMP. Build LGPLed libssp library. Our libc provides our own BSD-licensed SSP callbacks implementation, so this library is only built to benefit applications that have hadcoded knowledge of libssp.so and libssp_nonshared.a. When linked in from command line, these libraries override libc implementation. Notes: svn path=/head/; revision=169718
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-03-171-3/+5
| | | | | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine) Notes: svn path=/head/; revision=156813
* Add libgcov, a runtime support library for binaries compiled for basicAlexander Kabaev2004-08-141-1/+1
| | | | | | | block profiling. Notes: svn path=/head/; revision=133707
* Initiate deorbit burn for the i386-only a.out related support. Moves arePeter Wemm2002-09-171-6/+0
| | | | | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha Notes: svn path=/head/; revision=103436
* Add some build glue for libstdc++. I'm not a C++ person, but this seemsPeter Wemm2002-05-291-3/+3
| | | | | | | | | | | | to work at least for the non-hairy stuff. The main wrinkle here is that a whole mess of include files get installed and under different names. An earlier version of this built a shadow include tree first in the obj directory, but this depends on the 'make includes' functionality. More tweaking is certainly going to be needed. Notes: svn path=/head/; revision=97433
* Make sure to not yet build the GNU C++, but still allowRuslan Ermilov2002-05-151-4/+2
| | | | | | | | for the C++ progs to be built with e.g. an old compiler, CXX=/usr/bin/c++, for the time being. Notes: svn path=/head/; revision=96669
* All platforms should be on equal footing now -- no special handling forDavid E. O'Brien2002-05-101-10/+6
| | | | | | | Sparc64 and IA-64. Notes: svn path=/head/; revision=96303
* Unbreak world (missing .else)Peter Wemm2002-04-081-0/+1
| | | | | | | | Submitted by: fenner Pointy hat to: obrien Notes: svn path=/head/; revision=94244
* Some things don't compile on ia64 and sparc64 yet.David E. O'Brien2002-04-081-1/+8
| | | | Notes: svn path=/head/; revision=94231
* Back out the previous revision for now. Instead, the current sparc64John Baldwin2002-01-071-4/+0
| | | | | | | Makefile changes are in the sparc64 p4 tree. Notes: svn path=/head/; revision=89015
* Don't build csu or libgcc on sparc64 for the time being.John Baldwin2002-01-031-0/+4
| | | | Notes: svn path=/head/; revision=88854
* Enable the new libmp in the build, and disable libgmp and itsDima Dorfman2001-07-291-1/+1
| | | | | | | henchmen. Notes: svn path=/head/; revision=80530
* Use a unified libgcc rather than a seperate one for threaded andDavid E. O'Brien2001-01-061-0/+2
| | | | | | | | | | | non-threaded programs. This provides threaded programs with the needed exception frame symbols. parts submitted by: Max Khon <fjoe@iclub.nsu.ru> PR: 23252 Notes: svn path=/head/; revision=70703