mingw.mk

changeset 284
8e7ef0675946
parent 263
f24b730cb75e
child 407
9505224d2fd2
--- a/mingw.mk	Sun Aug 06 14:41:20 2017 +0200
+++ b/mingw.mk	Sun Aug 06 17:02:25 2017 +0200
@@ -1,7 +1,7 @@
 #
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 #
-# Copyright 2016 Olaf Wintermann. All rights reserved.
+# Copyright 2017 Olaf Wintermann. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -std=gnu99 -g -c 
+CFLAGS  = -std=gnu99 -O2 -c 
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
@@ -42,6 +42,6 @@
 LIB_EXT = .a
 APP_EXT = .exe
 
-DAV_CFLAGS = -I/usr/include/libxml2
-DAV_LDFLAGS = -lcurl  -lxml2 -lssl -lcrypto -lws2_32 -lgdi32 -lregex
+DAV_CFLAGS = `xml2-config --cflags`
+DAV_LDFLAGS = `xml2-config --libs` -lcurl -lssl -lcrypto -lws2_32 -lgdi32 -lregex
 

mercurial