summaryrefslogtreecommitdiffstats
path: root/src/sdl2_net.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-08-03 05:13:09 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-08-03 05:13:09 (GMT)
commit5d2e603c5d53d92e32a7434cee4b3d7c235b1b06 (patch)
tree6795cccacba2fa0f1050cbf4f8350b4b668e1090 /src/sdl2_net.mk
parent28fdfa16cc2654ba25a1e529fa9587c32c405896 (diff)
downloadmxe-5d2e603c5d53d92e32a7434cee4b3d7c235b1b06.zip
mxe-5d2e603c5d53d92e32a7434cee4b3d7c235b1b06.tar.gz
mxe-5d2e603c5d53d92e32a7434cee4b3d7c235b1b06.tar.bz2
package sdl2_net: fix test program build
Diffstat (limited to 'src/sdl2_net.mk')
-rw-r--r--src/sdl2_net.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sdl2_net.mk b/src/sdl2_net.mk
index 9b0619b..ab324b7 100644
--- a/src/sdl2_net.mk
+++ b/src/sdl2_net.mk
@@ -28,9 +28,10 @@ define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
'$(TARGET)-gcc' \
- -W -Wall -Werror -ansi -pedantic \
+ -W -Wall -Werror -std=c99 -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl2_net.exe' \
- `'$(TARGET)-pkg-config' SDL2_net --cflags --libs`
+ `'$(TARGET)-pkg-config' SDL2_net --cflags --libs` \
+ -lws2_32 -liphlpapi
endef
$(PKG)_BUILD_i686-pc-mingw32 =