X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/0a7506c9bdc0d0d560d4b9c8a3d1089f5db425b9..b5d655f7532a546b54809da387f7467d128a756b:/gmon/Makefile.inc?ds=sidebyside diff --git a/gmon/Makefile.inc b/gmon/Makefile.inc index 11ce509..da4c2c1 100644 --- a/gmon/Makefile.inc +++ b/gmon/Makefile.inc @@ -12,11 +12,19 @@ MAN3 += moncontrol.3 MLINKS += moncontrol.3 monstartup.3 .endif +GFLAGS = -O -pipe -Wmost -g -fno-common +.if $(MACHINE_ARCH) != arm +GFLAGS += -force_cpusubtype_ALL +.endif +.ifdef SDKROOT +GFLAGS += -isysroot '${SDKROOT}' +.endif # SDKROOT + # mcount cannot be compiled with profiling gmon.po: - ${CC} -O -pipe -arch ${MACHINE_ARCH} -Wmost -g -fno-common \ - -no-cpp-precomp -force_cpusubtype_ALL \ + ${CC} -arch ${CCARCH} ${GFLAGS} \ -I${.CURDIR}/include \ + -I${SYMROOT}/include \ -I${INCLUDEDIR} \ -I${INCLUDEDIR}/objc \ ${PRIVINC} \