#!/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 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -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/8.4/ext \
    -I/usr/include/$1 \
    $4 $2 -o $1.so $3 -lc
