#!/usr/bin/bash
gcc -Wall -fPIC -shared -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O3 -fno-strict-aliasing -fvisibility=default -Wno-error=deprecated-declarations -Wno-deprecated-declarations \
    -I. `/usr/bin/php-config --includes` \
    -I/usr/include/libxml2 \
    -I/usr/include/freetype \
    -I/usr/include/openssl \
    -I/usr/src/php-devel/ext \
    -I/usr/include/$1 \
    $4 $2 -o $1.so $3 -lc
