#!/usr/bin/bash
gcc -Wall -fPIC -shared -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fomit-frame-pointer -m32 -march=i686 -msse2 -mtune=generic -mfpmath=sse  -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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
