What on earth for?cr0hn said:I'm trying to compile my world statically,
tftpd.o: In function `main':
/usr/src/libexec/tftpd/tftpd.c:(.text+0x474): undefined reference to `request_init'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x48a): undefined reference to `request_set'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x494): undefined reference to `hosts_access'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x4d7): undefined reference to `request_set'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x4e1): undefined reference to `hosts_access'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x4fa): undefined reference to `request_set'
/usr/src/libexec/tftpd/tftpd.c:(.text+0x504): undefined reference to `hosts_access'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
COPTFLAGS+= -O3
CPUTYPE?=core2
CFLAGS+= -O3
CXXFLAGS+= -O3
PERL_VERSION=5.12.4
# Add some options
WITH_OPTIMIZED_CFLAGS=YES
BUILD_OPTIMIZED=YES
BUILD_STATIC=YES
WITH_CPUFLAGS=YES
STATIC=YES
# Remove some options
WITHOUT_DEBUG=YES
WITHOUT_X11=YES
NO_SHARED=YES
# Defines malloc with no debug symbols
MALLOC_PRODUCTION=YES
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
# For CLANG
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
NO_FSCHG=yes
make clean cleanworld && rm -rf /usr/obj/*
Remove all these and never set them again.cr0hn said:Code:COPTFLAGS+= -O3 CFLAGS+= -O3 CXXFLAGS+= -O3
Remove those too, they are deprecated.Code:NO_SHARED=YES NO_FSCHG=yes
MALLOC_PRODUCTION=YES