FS#35502 - [gen2shp] header and link order fix, include CFLAGS
Attached to Project:
Community Packages
Opened by Kevin Mihelich (kmihelich) - Monday, 27 May 2013, 17:38 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 07 November 2013, 15:00 GMT
Opened by Kevin Mihelich (kmihelich) - Monday, 27 May 2013, 17:38 GMT
Last edited by Jelle van der Waa (jelly) - Thursday, 07 November 2013, 15:00 GMT
|
Details
Description: There are a few fixes needed for this package
to build properly.
First, which depends on #35500, is to fix the include for shapefil.h to change the include from <libshp/shapefil.h> to just <shapefil.h>: sed -i 's:libshp/::' gen2shp.c Second, for the shapelib libshp.a library to link properly, the order in the Makefile needs to be changed with: sed -i 's/-lshp gen2shp.c utils.o/gen2shp.c utils.o -lshp/' Makefile Third, to include our CFLAGS in the build, run make as: make CFLAGS="$CFLAGS" All together it should look something like: # fix conflicting function names sed -i 's/getline/get_line/' gen2shp.c utils.c utils.h sed -i 's:libshp/::' gen2shp.c sed -i 's/-lshp gen2shp.c utils.o/gen2shp.c utils.o -lshp/' Makefile make CFLAGS="$CFLAGS" Additional info: * package version: 0.3.1-8 Steps to reproduce: Build from a clean chroot. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Thursday, 07 November 2013, 15:00 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in svn
Thursday, 07 November 2013, 15:00 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in svn