cURL / Mailing Lists / curl-library / Single Mail


Re: Recommended setup for cross-platform development?

From: Daniel Stenberg <>
Date: Sat, 27 Feb 2016 00:10:24 +0100 (CET)

On Fri, 26 Feb 2016, Dave Nadler wrote:

> What is the recommended setup technique for all the developers like us?

You run configure once on each platform and save that particular curlbuild.h
and then you make your builds include that one for the correct platforms:

[platform 1]
./configure ...
mv curlbuild.h curlbuild-plat1.h

[platform 2]
./configure ...
mv curlbuild.h curlbuild-plat2.h

[platform 2]
./configure ...
mv curlbuild.h curlbuild-plat3.h

then you make a new curlbuild.h:

#ifdef plat1
#include "curlbuild-plat1.h"
#ifdef plat2
#include "curlbuild-plat2.h"
#ifdef plat3
#include "curlbuild-plat3.h"

List admin:
Received on 2016-02-27