Skip to content

Commit

Permalink
Update machocheck/Makefile.in
Browse files Browse the repository at this point in the history
some flags don't work with clang
  • Loading branch information
cooljeanius committed Aug 25, 2023
1 parent c2ac7d1 commit d8c0ee8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions machocheck/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ MAC_VERS_CFLAGS = -mmacosx-version-min=10.5
HARDCODED_CFLAGS = $(MAC_VERS_CFLAGS) -mfix-and-continue -gdwarf-2 -ggdb3 -gfull -O0
MULTIARCH_CFLAGS = -arch x86_64 -arch i386
CFLAGS = @CFLAGS@
HARDCODED_BETTER_DEBUG_CFLAGS = -ftrapping-math -fsignaling-nans -fbounds-check -fstack-check -ftrapv -fstack-protector
HARDCODED_BETTER_DEBUG_CFLAGS = -ftrapping-math -fstack-check -ftrapv -fstack-protector
HARDCODED_GCC_BETTER_DEBUG_CFLAGS = -fsignaling-nans -fbounds-check
BETTER_DEBUG_CFLAGS = @BETTER_DEBUG_CFLAGS@
ARM_DEFS = -DSUPPORT_ARCH_arm_any=1 -DSUPPORT_ARCH_arm64=1
HARDCODED_DEFS = -D__STRICT_BSD__ -DDEBUG -DLTO_SUPPORT # $(ARM_DEFS)
Expand Down Expand Up @@ -43,7 +44,7 @@ src/other/machochecker.o: src/other/machochecker.cpp src/ld/configure.h \
src/ld/Architectures.hpp src/Abstraction/FileAbstraction.hpp \
src/Abstraction/MachOFileAbstraction.hpp src/other/machochecker.h \
Makefile ../Makefile
$(CXX) $(HARDCODED_CFLAGS) $(HARDCODED_BETTER_DEBUG_CFLAGS) $(HARDCODED_WARN_CXXFLAGS) $(WARN_CXXFLAGS) $(HARDCODED_DEFS) $(DEFS) $(HARDCODED_CPPFLAGS) -c -o $@ $<
$(CXX) $(HARDCODED_CFLAGS) $(HARDCODED_BETTER_DEBUG_CFLAGS) $(HARDCODED_WARN_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(HARDCODED_DEFS) $(DEFS) $(HARDCODED_CPPFLAGS) -c -o $@ $<

libmachocheck.a: src/other/machochecker.o
$(HARDCODED_AR) $(HARDCODED_ARFLAGS) libmachocheck.a src/other/machochecker.o
Expand Down

0 comments on commit d8c0ee8

Please sign in to comment.