1 # $NetBSD: Makefile,v 1.13 2014/06/04 19:07:22 tron Exp $
3 # build GCC's libgomp, so that -fopenmp works.
10 .if
!defined
(NO_LIBGOMP
) # {
42 GOMP_MACHINE_ARCH?
= ${MACHINE_ARCH
:S
/earmv5
/earm
/}
43 ARCHDIR
= ${.CURDIR
}/arch
/${GOMP_MACHINE_ARCH}
48 -I
${DIST}/libgomp
/config
/posix \
53 CWARNFLAGS.clang
+= -Wno-conversion
55 # libgomp is 1.0 is in GCC 4.5, and 1.1 in 4.8 since it added more symbols
59 LDFLAGS
+= -Wl
,--version-script
,${DIST}/libgomp
/libgomp.map
61 .if
${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH
:S
/earmv5
/earm
/}
62 # This is where GCC looks for it.
67 INCSDIR
= /usr
/include/gcc-4.8
76 COPTS
+= -Wno-stack-protector
78 .PATH
: ${ARCHDIR} ${DIST}/libgomp
${DIST}/libgomp
/config
/posix