[mapserver-users] Compiling PHP-Mapscript FreeBSD 4.5

Bob Carr racarr at ameritech.net
Mon Jun 17 03:26:25 PDT 2002


Steve,

Thanks for all of your assistance.  I was able to compile the mapscript/php
subdirectory (php_mapscript.so) after adding the '-shared' option to the
$(LD) variable.  I also changed one of the PHP_SRC_DIR includes to /ext from
/dl.  Here's a list of the changes made to mapscript/php3/Makefile:

Original 
    CC =     cc undef  -I. -I.. -DPIC -fpic
    LD =     cc -Wl -Wl

Changed To
    CC =     gcc -undef  -I. -I.. -DPIC -fpic
    LD =     gcc -Wl,-shared


Original
    PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main \
          -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include \
          -I$(PHP_SRC_DIR)/TSRM

Changed To
    PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/ext -I$(PHP_SRC_DIR)/main \
          -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include \
          -I$(PHP_SRC_DIR)/TSRM
-- 
bob carr
port washington, wisconsin
racarr at ameritech.net




More information about the MapServer-users mailing list