Skip to content

Commit

Permalink
chore: add error message in makefile when both rosetta and static are on
Browse files Browse the repository at this point in the history
  • Loading branch information
hacheigriega committed Aug 14, 2024
1 parent d263fc4 commit ed48912
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ endif

# For building statically linked binaries
ifeq ($(LINK_STATICALLY),true)
ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
ifeq ($(ENABLE_ROSETTA),true)
$(error Cannot link statically when Rosetta is enabled)
endif
ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static"
endif

ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))
Expand Down

0 comments on commit ed48912

Please sign in to comment.