Skip to content

Commit

Permalink
Remove DarwinLibrarySearchFlags variable
Browse files Browse the repository at this point in the history
It seems `PkgConfig` is able to add the library search folder.

We keep the `DarwinIncludeSearchFlags` variable since we want to add a system include folder (`-isystem`) for Brew packages, so warnings are not reported for these header files.
  • Loading branch information
DanRStevens committed Mar 9, 2025
1 parent c3db095 commit a26c2da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ WindowsRunPrefix := wine
WindowsRunSuffixUnitTest := --gtest_color=yes | cat -

DarwinIncludeSearchFlags = -isystem$(shell brew --prefix)/include
DarwinLibrarySearchFlags = -L$(shell brew --prefix)/lib

IncludeSearchFlags := $($(TARGET_OS)IncludeSearchFlags)
LibrarySearchFlags := $($(TARGET_OS)LibrarySearchFlags)
SpecialPreprocessorFlags := $($(TARGET_OS)SpecialPreprocessorFlags)
SpecialWarnFlags := $($(TARGET_OS)SpecialWarnFlags)
ExeSuffix := $($(TARGET_OS)ExeSuffix)
Expand All @@ -80,7 +78,7 @@ SRCS := $(shell find $(SRCDIR) -name '*.cpp')
OBJS := $(patsubst $(SRCDIR)/%.cpp,$(INTDIR)/%.o,$(SRCS))

IncludeSearchFlags := $(shell type $(PkgConfig) >/dev/null 2>&1 && $(PkgConfig) --cflags-only-I sdl2) $(IncludeSearchFlags)
LibrarySearchFlags := $(shell type $(PkgConfig) >/dev/null 2>&1 && $(PkgConfig) --libs-only-L sdl2) $(LibrarySearchFlags)
LibrarySearchFlags := $(shell type $(PkgConfig) >/dev/null 2>&1 && $(PkgConfig) --libs-only-L sdl2)

Linux_OpenGL_LIBS := -lGLEW -lGL
Darwin_OpenGL_LIBS := -lGLEW -framework OpenGL
Expand Down

0 comments on commit a26c2da

Please sign in to comment.