version 1.10, 2014/02/26 09:54:32 |
version 1.11, 2014/03/01 10:00:38 |
|
|
|
|
.if !defined(NO_LIBGOMP) # { |
.if !defined(NO_LIBGOMP) # { |
|
|
DIST= ${GCCDIST} |
DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist |
|
|
LIB= gomp |
LIB= gomp |
SRCS= \ |
SRCS= \ |
|
|
-I${ARCHDIR} |
-I${ARCHDIR} |
CFLAGS+=-pthread |
CFLAGS+=-pthread |
|
|
COPTS+= -Wno-stack-protector |
|
|
|
CWARNFLAGS.clang+= -Wno-conversion |
CWARNFLAGS.clang+= -Wno-conversion |
|
|
# libgomp.so.1.0 is in GCC 4.5. |
# libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols |
SHLIB_MAJOR= 1 |
SHLIB_MAJOR= 1 |
SHLIB_MINOR= 0 |
SHLIB_MINOR= 1 |
|
|
LDFLAGS+= -Wl,--version-script,${DIST}/libgomp/libgomp.map |
LDFLAGS+= -Wl,--version-script,${DIST}/libgomp/libgomp.map |
|
|
|
.PATH: ${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix |
|
|
.if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/} |
.if ${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH:S/earmv5/earm/} |
# This is where GCC looks for it. |
# This is where GCC looks for it. |
FILES= libgomp.spec |
FILES= libgomp.spec |
FILESDIR= ${LIBDIR} |
FILESDIR= ${LIBDIR} |
|
|
INCS= omp.h |
INCS= omp.h |
INCSDIR= /usr/include/gcc-4.5 |
INCSDIR= /usr/include/gcc-4.8 |
.endif |
.endif |
|
|
.else # } else { |
.else # } else { |
|
|
|
|
.include <bsd.lib.mk> |
.include <bsd.lib.mk> |
|
|
.PATH: ${ARCHDIR} ${DIST}/libgomp ${DIST}/libgomp/config/posix |
COPTS+= -Wno-stack-protector |