Bind 9.9.6 does not compile ld gets arch=native, but expects elf_x86_64_fbsd elf_i386_fbsd. I'm not sure if it's a port or app problem. End of the log gcc49 -pthread -I/usr/ports/dns/bind99/work/bind-9.9.6 -I/usr/ports/dns/bind99/work/bind-9.9.6/lib/dns/include -I../../../../lib/dns/include -I/usr/ports/dns/bind99/work/bind-9.9.6/lib/isc/include -I../../../../lib/isc -I../../../../lib/isc/include -I../../../../lib/isc/unix/include -I../../../../lib/isc/pthreads/include -I../../../../lib/isc/x86_32/include -I/usr/local/include -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -O2 -pipe -fdiagnostics-color=auto -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -ftracer -floop-interchange -floop-strip-mine -floop-block -fuse-linker-plugin -flto=6 -ffat-lto-objects -march=native -DLIBICONV_PLUG -fstack-protector-strong --param ssp-buffer-size=4 -fno-strict-aliasing -I/usr/local/include/libxml2 -I/usr/include -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks -c driver.c ld -O2 -pipe -fdiagnostics-color=auto -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -ftracer -floop-interchange -floop-strip-mine -floop-block -fuse-linker-plugin -flto=6 -ffat-lto-objects -march=native -DLIBICONV_PLUG -fstack-protector-strong --param ssp-buffer-size=4 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -rpath /usr/local/lib -fstack-protector -Bshareable -x -o driver.so driver.o ld: unrecognised emulation mode: arch=native Supported emulations: elf_x86_64_fbsd elf_i386_fbsd
Auto-assigned to maintainer mat@FreeBSD.org
It's got nothing to do with '-march=native'. The port simply does not understand any flags passed via LDFLAGS.
Is this still a problem ?
Yes, as soon as LDFLAGS are added, compilation will fail.
(In reply to Olivier - interfaSys sàrl from comment #4) > Yes, as soon as LDFLAGS are added, compilation will fail. Can you provide a way for me to test this ?