ports: Build NimBLE with 32-bit environment

Some code in NimBLE assumes that pointers are 4 bytes. Until this
is properly fixed build with -m32 to make sure resulting binary
is no misbehaving.
This commit is contained in:
Szymon Janc
2021-12-23 14:47:43 +01:00
parent ee6ba614c8
commit f771348a4e
5 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -60,6 +60,7 @@ OBJ := $(SRC:.c=.o)
TINYCRYPT_OBJ := $(TINYCRYPT_SRC:.c=.o)
CFLAGS := $(NIMBLE_CFLAGS)
LDFLAGS := $(NIMBLE_LDFLAGS)
.PHONY: all clean
.DEFAULT: all
@@ -76,4 +77,4 @@ $(TINYCRYPT_OBJ): CFLAGS+=$(TINYCRYPT_CFLAGS)
$(CC) -c $(addprefix -I, $(INC)) $(CFLAGS) -o $@ $<
dummy: $(OBJ) $(TINYCRYPT_OBJ)
$(CC) -o $@ $^
$(CC) -o $@ $^ $(LDFLAGS)
+1 -1
View File
@@ -81,7 +81,7 @@ CFLAGS = \
-D_GNU_SOURCE \
$(NULL)
LIBS := -lrt -lpthread -lstdc++
LIBS := $(NIMBLE_LDFLAGS) -lrt -lpthread -lstdc++
.PHONY: all clean
.DEFAULT: all
+1 -1
View File
@@ -83,7 +83,7 @@ CFLAGS = \
-D_GNU_SOURCE \
$(NULL)
LIBS := -lrt -lpthread -lstdc++
LIBS := $(NIMBLE_LDFLAGS) -lrt -lpthread -lstdc++
.PHONY: all clean
.DEFAULT: all