View Single Post
Old 23 October 2019, 13:22   #1188
Marlon_
AmigaDev.com

Marlon_'s Avatar
 
Join Date: Mar 2016
Location: Sundsvall, Sweden
Age: 31
Posts: 600
Quote:
Originally Posted by ciVic View Post
Newest commit fixes this, thx!


But I have another question, probably not related to the toolchain. I'm trying to configure curl but the configure scripts always adds /opt/local/include:


Code:
  Host setup:       m68k-unknown-amigaos
  Install prefix:   /opt/m68k-amigaos
  Compiler:         m68k-amigaos-gcc
   CFLAGS:          -fomit-frame-pointer -m68020-60 -O2 -msoft-float -noixemul  -Werror-implicit-function-declaration -Wno-system-headers
   CPPFLAGS:        -I/opt/local/include
   LDFLAGS:         -L/opt/local/lib
   LIBS:            -lamisslauto -lz -lsocket

I don't know how to disable it. It can find some of the OpenSSL headers there and then compilation fails.
configure uses pkgconfig to look for libs/includes. You have to tell pkgconfig where to look, otherwise it will look in the system default directories, and if the libs are found it gets added to CFLAGS.

PKG_CONFIG_PATH=/opt/m68k-amigaos/lib/pkgconfig/:/opt/m68k-amigaos/share/pkgconfig/ ./configure <your-flags-here>

But since most libs for Amiga doesn't include pkgconfig .pc files, it will just fail at finding them (unless you make your own).

You can define path to ssl and disable stuff you don't need manually with configure instead to override this.

Another option is to override LDFLAGS and CPPFLAGS during "make"
Marlon_ is offline  
 
Page generated in 0.04115 seconds with 11 queries