1 # $NetBSD: Makefile,v 1.7 2012/02/23 11:05:02 nonaka Exp $
3 # build GCC's libgomp, so that -fopenmp works.
10 .if
!defined
(NO_LIBGOMP
) # {
12 DIST
= ${NETBSDSRCDIR}/external
/gpl3
/gcc
/dist
42 GOMP_MACHINE_ARCH?
= ${MACHINE_ARCH}
43 ARCHDIR
= ${.CURDIR
}/arch
/${GOMP_MACHINE_ARCH}
48 -I
${DIST}/libgomp
/config
/posix \
53 CWARNFLAGS.clang
+= -Wno-conversion
55 # libgomp.so.1.0 is in GCC 4.5.
59 LDFLAGS
+= -Wl
,--version-script
,${DIST}/libgomp
/libgomp.map
61 .PATH
: ${ARCHDIR} ${DIST}/libgomp
${DIST}/libgomp
/config
/posix
63 .if
${GOMP_MACHINE_ARCH} == ${MACHINE_ARCH}
64 # This is where GCC looks for it.
69 INCSDIR
= /usr
/include/gcc-4.5
78 COPTS
+= -Wno-stack-protector