Skip to content

Commit 3ea8dd5

Browse files
committed
Fix CFLAGS/LDFLAGS for libpng
1 parent ddd9c9a commit 3ea8dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ else
284284
GL_CFLAGS := $(shell $(PKG_CONFIG) --cflags gl)
285285
GL_LDFLAGS := $(shell $(PKG_CONFIG) --libs gl || echo -lGL)
286286
ifeq ($(NEED_LIBPNG),1)
287-
SDL_LDFLAGS += $(shell $(PKG_CONFIG) --cflags libpng)
288-
SDL_CFLAGS += $(shell $(PKG_CONFIG) --libs libpng || echo -lpng)
287+
SDL_LDFLAGS += $(shell $(PKG_CONFIG) --libs libpng || echo -lpng)
288+
SDL_CFLAGS += $(shell $(PKG_CONFIG) --cflags libpng)
289289
endif
290290
endif
291291

0 commit comments

Comments
 (0)