Commit Graph

1846 Commits

Author SHA1 Message Date
njoly
e9915f3b1e Change shared object file extension from .so to .pico, to avoid
conflicts with shared libaries names libXX.so; as recently seen with
MKUPDATE=yes builds for libelf and libnvpair.

All now stalled regular .so files need to be manually removed from
object directories.
2010-02-22 12:33:22 +00:00
darran
1bf14d4eef Add a MKDTRACE build knob for DTrace, off by default. 2010-02-21 01:48:03 +00:00
macallan
264656d782 add suncg14 2010-02-11 00:20:50 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
christos
8dd41afecc PR/42658: Geoff Wing: Quote directory variables to deal with spaces in the
source pathname.
2010-01-25 00:43:00 +00:00
jmmv
874cd0d0c1 Generate long calls in modules for arm32 and powerpc to avoid unsupported
relocations by the module loader in the kernel.  This makes modules work
in, at least, shark and macppc respectively.

This is obviously a workaround that results in slower code, but at least
makes modules work.  I'm adding a comment detailing what the real solution
would be so that the whole thing can be revisited in the future.  (Read:
I don't have time now to dig the details of how to implement trampoline
generation.)

(Based on the old bsd.kmod.mk file, I understand that hppa needs this
workaround too, but I can't check this platform.)
2010-01-18 23:39:07 +00:00
abs
6861006e58 Add note on SHLIB_{MAJOR,MINOR,TEENY} 2009-12-30 20:45:46 +00:00
abs
fb1a714458 Add brief line on SHLIB_MAJOR, SHLIB_MINOR and SHLIB_TEENY in comments
section - addresses PR bin/39693
2009-12-30 12:34:13 +00:00
tron
e24ad332ec LVM gets built by default these days. 2009-12-23 18:02:25 +00:00
tron
6d4aa8c1f7 Fix typo. 2009-12-23 18:00:38 +00:00
christos
830b7bc6e9 We mustn't search in the path for ${dir}.${MACHINE}; make sure we only
find the ones relative to ${.CURDIR}.
2009-12-19 00:14:43 +00:00
mrg
6540a82b31 brace a --fatal-warnings with a NOGCCERROR check. 2009-12-15 04:03:55 +00:00
mrg
588b1ff87f use "${CC} -r" not "${CC} -Wl,-r" as the latter fools GCC on some targets
and it ends up passing "-r -relax" to ld, which causes ld to barf.
2009-12-14 08:51:16 +00:00
christos
2713ece13f don't need GENCMD anymore. 2009-12-14 05:25:21 +00:00
matt
1e301281a1 Merge from matt-nb5-mips64 2009-12-14 01:00:46 +00:00
christos
2561f2eece Don't add the .h rule for yacc if we are not really building (-n) 2009-12-13 18:40:50 +00:00
mrg
bcd8d648d5 enable MAKEDIRTARGET to be called with a separate environment,
called $MAKEDIRTARGETENV, defaulting to nothing.
2009-12-13 09:10:16 +00:00
mrg
6af15ae20b if BSD_MK_COMPAT_FILE is defined, .include it. 2009-12-13 09:01:45 +00:00
nonaka
7ed8bf295b The support of X for zaurus is added. 2009-12-13 05:04:36 +00:00
nakayama
cdf5b45b9a 32-bit compat is CPU specific rather than machine.
So use MACHINE_ARCH instead.
2009-12-13 03:06:22 +00:00
snj
24e81c293f Switch cats to X.Org. 2009-12-12 23:45:36 +00:00
mrg
a6052e3b04 replace /usr/lib with ${_GCC_CRTDIR} or ${SHLIBDIR} as appropriate. 2009-12-12 21:33:50 +00:00
snj
6085ee1cdc Switch netwinder to X.Org. 2009-12-11 22:35:42 +00:00
uebayasi
bab9f7218a GENCMD: quote the string to eval in case it has spaces. 2009-12-11 16:09:03 +00:00
he
66597865fb Move the test for evbppc out of sets.subr and into bsd.own.mk, to
decide whether to make kernel modules: set MKKMOD to no for evbppc.
Use this in etc/Makefile to decide whether to do the "modules"
obsolete sets.  Move the ./var/db/obsolete/modules entry from the
"mi" to the "module.mi" file set.

Fixes the build for evbppc.

Discussed with uebayasi@
2009-12-11 15:22:33 +00:00
uebayasi
31dfbef56f ${GENCMD}:
Prefix tmp directories as /tmp/_gencmd.XXXXXX to give users a clue when it's
left accidentally.
2009-12-11 08:52:37 +00:00
uebayasi
bf4c37b84c ${GENCMD} is used to generate only one output from file generation commands
which potentially have multiple output files, which confuses make(1).

This wrapper copies all involved files into /tmp, execute the command, and
copy the wanted file back to ${.OBJDIR}.  If this is expensive, consider to
rewrite the generation command to output files individually.

XXX bsd.own.mk is too bloated.
2009-12-11 08:37:34 +00:00
uebayasi
cf4c152485 When PROGS / LIBS are used, you can pass each PROG / LIB specific parameters
to ${LD} via:

	${LDADD.${PROG}}
	${LDFLAGS.${PROG}}
	${LDSTATIC.${PROG}}
	${LDADD.${LIB}}
	${LDFLAGS.${LIB}}

OTOH you can't pass parameters to ${CC}, because in suffix rules make(1) only
knows the name of ${.IMPSRC} and ${.TARGET}; it's users' responsivility to
define ${CC} parameters to all the sources of a given ${PROG} / ${LIB}.

Should address bin/42381.

(Bug in this commit log was pointed out by mrg@.)
2009-12-08 15:18:42 +00:00
uebayasi
1675a3f293 Simplify how MKZFS is set. No functional changes. 2009-12-06 16:15:15 +00:00
haad
e8e1233552 Switch MKLVM to default value to yes. There are only few bits missing and it
would be great if it can receive more testing.

Oked: core@, yamt@
2009-12-04 11:21:07 +00:00
tron
6a125b5c44 Add "MKZFS" to either "_MKVARS.yes" or "_MKVARS.no" depending on the
default of this platform. This fixed the build for NetBSD/amd64
and NetBSD/i386.

Yes, this horrible. There should be a better way to handle these
settings in general.
2009-12-03 15:57:18 +00:00
uebayasi
0cd6b4b257 Define lists of MK* variable names as _MKVARS.yes and _MKVARS.no. They're
referred to by syspkg.
2009-12-02 14:11:20 +00:00
uebayasi
f7393e813f Add ${TOOL_PKG_CREATE}. 2009-12-01 09:09:40 +00:00
uebayasi
d166c4bf28 Support "extsrc", externally added programs and libraries. Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
2009-11-30 16:13:22 +00:00
uebayasi
1dfaf75755 Remove an unneeded test (.if defined(V)) in .for v in ${V} ... .endfor.
Tested by running build.sh distribution.
2009-11-29 16:00:00 +00:00
mbalmer
228477b2fe Add the xf86-input-elographics driver to i386 builds. 2009-11-28 16:48:25 +00:00
mbalmer
d0bf5c8f87 Link the xf86-input-ws X.Org input driver to the build and add it to the lists
that also have the wsmouse driver.

xf86-input-ws adds support for touchpanels in X11 that report absolute position
data through wscons(4), e.g. the extended ums(4) driver.  xf86-input-ws was
written by Matthieu Herrb for OpenBSD.

Please remember to also update xsrc before the next system build.
2009-11-28 12:10:24 +00:00
pooka
972900e4ca Move -mcmodel=kernel CFLAGS from bsd.klinks.mk to amd64/include/Makefile.inc
to avoid having the kernel toolchain flags split over a billion different
files.
2009-11-27 13:50:29 +00:00
tsutsui
b00cd20126 If CPPFLAGS or CXXFLAGS already contains -nostdinc or -nostdinc++,
don't add ${CPPFLAGS_ISYSTEM} or ${CPPFLAGS_ISYSTEMXX} to refer
${DESTDIR}/usr/include or ${DESTDIR}/usr/include/g++.

This change might cause errors on some MD stand dir, but in that case
each Makefile should be fixed to search proper system include paths
by -Ipath option in own CPPFLAGS.
2009-11-27 11:44:36 +00:00
pgoyette
135ea6d8da Add a period at the end of a sentence. 2009-11-15 14:59:47 +00:00
tron
c3b1e69a6b Remove "USE_SSP_DEFAULT". 2009-11-12 14:46:37 +00:00
tron
d6e33297fb Revert SSP changes because at least rmind@, pooka@ and haad@ consider
5% more performance more important than the gain in security.
2009-11-12 14:30:34 +00:00
tron
559872b175 Invent a new flag "USE_SSP_DEFAULT" which defines whether we want to use
SSP for building the whole source tree. Set this to "yes" for
NetBSD/amd64 and NetBSD/i386. It is now possible to get the old
behavior (build libs and certain programs with SSP) by setting
"USE_SSP_DEFAULT" to "no".
2009-11-12 13:22:34 +00:00
tron
47db09157e Fix broken conditional to get manual builds (not using "build.sh")
working again.
2009-11-12 08:51:50 +00:00
tron
840a46601a Enable Stack Smash Protection (SSP) by default for NetBSD/amd64 and
NetBSD/i386 as previously discussed on the "port-amd64" and
"port-i386" mailing lists. No objections from the core team.

Thanks a lot to Tobias Nygren for helping me with the benchmarking
and to Christos Zoulas for fixing SSP problems in cgd(4).
2009-11-11 16:35:45 +00:00
macallan
e58b11d12a add igs driver for Xorg 2009-11-10 21:41:31 +00:00
skrll
25edd46c0c Move the kmodule linker script source into sys/modules/xldscripts. It is
not part of binutils and definitely not GPL v3.

Discussed with mrg.
2009-11-10 14:47:52 +00:00
skrll
29d2620fc4 IA64 doesn't have SSP. 2009-11-09 15:58:09 +00:00
mrg
3ebc75ef44 update for xorg-server 1.6.5 2009-11-09 07:38:14 +00:00
skrll
c93ac2bc84 Update for new binutils location.
XXX Why is kmodule under binutils anyway?
2009-11-08 22:27:09 +00:00