X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=package%2Fgrub%2FMakefile;h=ee527be13f4adc22360e8ed8a0088600932a59ce;hb=b7e25b807bc3e4b32d9455a00ac6310904796526;hp=426b9c367307fc5ede8d1dad88f80bb420ea5e1e;hpb=8386207f1ff4339ab72bafca3c1b415628533e4b;p=oweals%2Fopenwrt.git diff --git a/package/grub/Makefile b/package/grub/Makefile index 426b9c3673..ee527be13f 100644 --- a/package/grub/Makefile +++ b/package/grub/Makefile @@ -49,6 +49,14 @@ ifeq ($(HOST_OS),Darwin) HOST_CFLAGS += $(call host-cc-option,-fnested-functions) endif +ifeq ($(HOST_OS),FreeBSD) + ifeq ($(HOST_ARCH),amd64) + HOST_CFLAGS += $(call host-cc-option,-m32) + HOST_CFLAGS += $(call host-cc-option,-B/usr/lib32) + HOST_CFLAGS += $(call host-cc-option,-L/usr/lib32) + endif +endif + HOST_CFLAGS += $(call host-cc-option,-fno-stack-protector) HOST_CFLAGS += $(call host-cc-option,-U_FORTIFY_SOURCE)