version 1.134, 2013/01/31 23:35:02 |
version 1.135, 2013/02/02 13:38:41 |
|
|
# Set `DEBUGLIBS' to `yes' to build libraries with debugging symbols |
# Set `DEBUGLIBS' to `yes' to build libraries with debugging symbols |
DEBUGLIBS?= no |
DEBUGLIBS?= no |
# Set toolchain to be able to know differences. |
# Set toolchain to be able to know differences. |
.if ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "vax" |
.if ${MACHINE_ARCH} == "vax" |
ELF_TOOLCHAIN?= no |
ELF_TOOLCHAIN?= no |
.else |
.else |
ELF_TOOLCHAIN?= yes |
ELF_TOOLCHAIN?= yes |
|
|
PICFLAG?=-fPIC |
PICFLAG?=-fPIC |
.else |
.else |
PICFLAG?=-fpic |
PICFLAG?=-fpic |
. if ${MACHINE_ARCH} == "m68k" |
|
# Function CSE makes gas -k not recognize external function calls as lazily |
|
# resolvable symbols, thus sometimes making ld.so report undefined symbol |
|
# errors on symbols found in shared library members that would never be |
|
# called. Ask niklas@openbsd.org for details. |
|
PICFLAG+=-fno-function-cse |
|
. endif |
|
.endif |
.endif |
|
|
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" |
.if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" |