cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Porting libcurl on embedded system with proprietary OS

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Jul 2014 16:08:01 +0200 (CEST)

On Fri, 25 Jul 2014, Jon Torrey wrote:

> I have noticed it is very complex. Was very interested if there was any
> sort of simplification of explaining the process. We shall carry on now.

A simple approach can be to just run ./configure once on your linux machine,
then go through lib/curl_config.h manually afterwards and make sure it matches
your target system and rename it to lib/config-integrity.h. Then edit
lib/curl_setup.h to include that file like:

#ifdef __INTEGRITY
#include "config--integrity.h"
#endif

... and you either use the makefile configure created for you (which is large
and mostly unpenetrable) and build all C files, or you write a simple makefile
replacement that just builds all C files in the lib/ directory and generate a
lib out of it.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-25