Skip to content

Commit

Permalink
Remove librt when cross-compiling Windows on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jan 11, 2024
1 parent ca873ed commit 760671b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ifneq (,$(findstring mingw,$(shell $(CXX) --version)))
endif

ifeq (1, $(MINGW))
LDLIBS := $(subst -lrt ,,$(LDLIBS))
CXX = x86_64-w64-mingw32-g++-posix
CC = x86_64-w64-mingw32-gcc-posix
AR = x86_64-w64-mingw32-ar
Expand Down

0 comments on commit 760671b

Please sign in to comment.