1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

board/native: fix CFLAGS and LINKFLAGS for FreeBSD

This commit is contained in:
Thomas Eichinger 2015-07-02 10:56:51 +02:00
parent fa2ce9ffdc
commit 238dda4423

View File

@ -47,7 +47,7 @@ export CFLAGS += -fstack-protector-all
endif
ifeq ($(shell uname -s),FreeBSD)
ifeq ($(shell uname -m),amd64)
export CFLAGS += -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32
export CFLAGS += -m32 -DCOMPAT_32BIT -B/usr/lib32
endif
endif
@ -60,7 +60,7 @@ export LINKFLAGS += -m32
endif
ifeq ($(shell uname -s),FreeBSD)
ifeq ($(shell uname -m),amd64)
export LINKFLAGS += -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32
export LINKFLAGS += -m32 -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32
endif
export LINKFLAGS += -L $(BINDIR)
else