Skip to content

Commit

Permalink
tests/hello: Makefile: Add more gcc args to CFLAGS_ULP
Browse files Browse the repository at this point in the history
Link: #12
Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax committed Apr 29, 2024
1 parent 8f016f0 commit 97e26ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/hello/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ ifdef NOSTATIC
CFLAGS += -DNOSTATIC=1
CFLAGS_ULP += -DNOSTATIC=1
endif
ifeq ($(shell uname -m),x86_64)
CFLAGS_ULP += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx
CFLAGS_ULP += -fcf-protection=branch -fno-jump-tables
CFLAGS_ULP += -m64 -falign-jumps=1
endif
ifeq ($(shell uname -m),aarch64)
# TODO
endif

LDFLAGS_ULP :=
LDFLAGS_ULP += -relocatable --build-id=sha1
Expand Down

0 comments on commit 97e26ac

Please sign in to comment.