Opened 5 years ago

Closed 5 years ago

#4443 closed defect (fixed)

Building with --without-raster drops CPPFLAGS

Reported by: Algunenano Owned by: Algunenano
Priority: blocker Milestone: PostGIS 3.0.0
Component: build Version: master
Keywords: Cc:

Description

When I do ./configure I get:

CPPFLAGS:              -I/usr/include   -I/usr/include/libxml2  -I/usr/include/json-c   

If I do ./configure --without-raster I get:

  CPPFLAGS:          

Which later on breaks the build as it can't find json-c headers:

/bin/sh ../libtool --mode=compile gcc  -Wall -Wmissing-prototypes -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros  -fPIC -DPIC -c -o lwgeom_median.lo lwgeom_median.c
lwin_geojson.c:36:10: fatal error: json.h: No such file or directory
   36 | #include <json.h>
      |          ^~~~~~~~
compilation terminated.

Change History (2)

comment:1 by Algunenano, 5 years ago

Owner: changed from strk to Algunenano

This is my fault, wagyu configure is doing CPPFLAGS_SAVE="$CPPFLAGS_SAVE" to save the flags :(

I'm kind of surprised it didn't break sooner.

comment:2 by algunenano, 5 years ago

Resolution: fixed
Status: newclosed

In 17566:

Fix wagyu configure dropping CPPFLAGS

Closes #4443

Note: See TracTickets for help on using tickets.