Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
Fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrokenRail committed Jun 24, 2021
1 parent b387c10 commit 5567362
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ CC:=clang
ARM_CC:=clang -target arm-linux-gnueabihf
LDFLAGS:=-fuse-ld=lld
STRIP:=llvm-strip
ARM_STRIP:=${STRIP}
ARCH:=$(shell $(CC) -dumpmachine | grep -Eo "arm|aarch|86|x86_64")
else
CC:=gcc
ARM_CC:=arm-linux-gnueabihf-gcc
LDFLAGS:=
STRIP:=strip
ARM_STRIP:=arm-linux-gnueabihf-strip
ARCH:=$(shell $(CC) -print-multiarch | grep -Eo "arm|aarch|86|x86_64")
endif

Expand All @@ -41,7 +43,7 @@ MODS:=$(patsubst %,build/lib%.so,multiplayer)

LDFLAGS+=-Wl,--no-undefined

CFLAGS:=-DGMCPIL_VERSION=\"v$(VERSION)\" -I./src/include -Wall
CFLAGS:=-DGMCPIL_VERSION=\"v$(VERSION)\" -I./src/include -Wall -Wno-address-of-packed-member -Wno-pointer-to-int-cast -Wno-unused-result
GTK_CFLAGS:=`pkg-config --cflags gtk+-3.0 json-glib-1.0`
GTK_LDFLAGS:=`pkg-config --libs gtk+-3.0 json-glib-1.0`
MOD_CONFIG:=--shared -ldl
Expand Down Expand Up @@ -70,7 +72,7 @@ endif
./build/lib%.so: ./src/mods/%.c
$(ARM_CC) -fPIC $< -o $@ $(MOD_CONFIG) $(CFLAGS) $(LDFLAGS)
ifndef DEBUG
$(STRIP) $@
$(ARM_STRIP) $@
endif

mkdir:
Expand Down

0 comments on commit 5567362

Please sign in to comment.