diff options
| author | Warner Losh <imp@FreeBSD.org> | 2016-03-12 23:25:05 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2016-03-12 23:25:05 +0000 |
| commit | bb52d711d0eab2a612da9553c0e07fdb5249cc5e (patch) | |
| tree | 2a4b47cc3626323c1a9d2ddc763a904658110745 /Makefile.libcompat | |
| parent | 2c4f4af7a89c7d0c466a8db37a81b3b402be4b49 (diff) | |
Notes
Diffstat (limited to 'Makefile.libcompat')
| -rw-r--r-- | Makefile.libcompat | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat index 32075fe0f435..8a336b9d5997 100644 --- a/Makefile.libcompat +++ b/Makefile.libcompat @@ -40,10 +40,19 @@ LIB32DTRACE= ${DTRACE} -32 LIB32WMAKEFLAGS+= -DCOMPAT_32BIT # ------------------------------------------------------------------- +# soft-fp world +.if ${TARGET_ARCH} == "armv6" +LIBSOFTCFLAGS= -DCOMPAT_SOFTFP +LIBSOFTCPUFLAGS= -mfloat-abi=softfp +LIBSOFTWMAKEENV= CPUTYPE=soft MACHINE=arm MACHINE_ARCH=armv6 +LIBSOFTWMAKEFLAGS= -DCOMPAT_SOFTFP +.endif + +# ------------------------------------------------------------------- # Generic code for each type. # Set defaults based on type. libcompat= ${LIBCOMPAT:tl} -_LIBCOMPAT_MAKEVARS= _OBJTREE TMP CFLAGS WMAKEENV WMAKEFLAGS WMAKE +_LIBCOMPAT_MAKEVARS= _OBJTREE TMP CPUFLAGS CFLAGS WMAKEENV WMAKEFLAGS WMAKE .for _var in ${_LIBCOMPAT_MAKEVARS} .if !empty(LIB${LIBCOMPAT}${_var}) LIBCOMPAT${_var}?= ${LIB${LIBCOMPAT}${_var}} |
