mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Curl example fails to build


From: René Berber
Subject: [Mingw-cross-env-list] Curl example fails to build
Date: Wed, 30 May 2012 20:17:47 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0

At the end of making curl:

'i686-pc-mingw32-gcc' -W -Wall -Werror -ansi -pedantic './src/curl-test.c' -o '/opt/mxe/usr/i686-pc-mingw32/bin/test-curl.exe' `'i686-pc-mingw32-pkg-config' libcurl --cflags --libs`
i686-pc-mingw32-gcc: @CPPFLAG_CURL_STATICLIB@: No such file or directory
make[1]: *** [build-only-curl] Error 1


The output of pkg-config causes the problem:

$ i686-pc-mingw32-pkg-config libcurl --cflags --libs
@CPPFLAG_CURL_STATICLIB@ -I/opt/mxe/usr/i686-pc-mingw32/include -L/opt/mxe/usr/i686-pc-mingw32/lib -lcurl -lcares -lidn -lintl -liconv -lwldap32 -lssh2 -lssl -lcrypto -lgdi32 -lcrypt32 -lz -lws2_32

Which of course is an error in usr/i686-pc-mingw32/lib/pkgconfig/libcurl.pc, the last line :

Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@

which comes from src/curl-1-fixes.patch, line 106:

+Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@

The variable never gets substituted.
--
René Berber



reply via email to

[Prev in Thread] Current Thread [Next in Thread]