#!/bin/bash
exec loongarch64-rosa-linux-gnu-gcc -Wall -fPIC -shared -O2 -g -L/usr/lib64 -fno-strict-aliasing -Wno-incompatible-pointer-types \
    -I. `/usr/bin/php8-config --includes` \
    -I/usr/include/libxml2 \
    -I/usr/include/freetype \
    -I/usr/include/openssl \
    -I/usr/src/php8-devel/ext \
    -I/usr/include/$1 \
    $4 $2 -o $1.so $3 -lc
