diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index f761459d2bd9..ac5b30b19265 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -132,9 +132,9 @@ linux${SFX}_vdso.so: linux${SFX}_vdso.so.o ${STRIPBIN} -N _binary_linux${SFX}_vdso_so_o_size ${.TARGET} .if ${MACHINE_CPUARCH} == "amd64" -linux${SFX}_support.o: linux${SFX}_assym.h assym.inc +linux${SFX}_support.o: linux${SFX}_support.S linux${SFX}_assym.h assym.inc ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ - ${.IMPSRC} -o ${.TARGET} + ${.ALLSRC:M*.S:u} -o ${.TARGET} .endif linux${SFX}_genassym.o: offset.inc diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile index f6f750e5216d..7d9929f7e14b 100644 --- a/sys/modules/linux64/Makefile +++ b/sys/modules/linux64/Makefile @@ -98,9 +98,9 @@ linux_vdso.so: linux_vdso.so.o linux_vdso.so.o ${.TARGET} ${STRIPBIN} -N _binary_linux_vdso_so_o_size ${.TARGET} -linux_support.o: assym.inc linux_assym.h +linux_support.o: linux_support.S assym.inc linux_assym.h ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ - ${.IMPSRC} -o ${.TARGET} + ${.ALLSRC:M*.S:u} -o ${.TARGET} linux_genassym.o: offset.inc ${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon ${.IMPSRC}