Skip to content

Commit 4abbbd6

Browse files
committed
Fix build pdo_oci on macos for PHP 7.0
Minor shellcheck fix
1 parent a19278e commit 4abbbd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scripts/extensions/oci.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ add_client() {
3838
sudo mv "$icdir"/* "$oracle_client"/
3939
done
4040
sudo mkdir -p "$libs"
41-
sudo ln -sf /opt/oracle/instantclient/*.$lib_ext* $libs
41+
sudo ln -sf /opt/oracle/instantclient/*."$lib_ext"* "$libs"
4242
if [ "$os" = "Linux" ]; then
4343
[ -e "$libs/$arch"-linux-gnu/libaio.so.1 ] || sudo ln -sf "$libs/$arch"-linux-gnu/libaio.so.1t64 "$libs/$arch"-linux-gnu/libaio.so.1
4444
fi
@@ -49,6 +49,7 @@ add_client() {
4949
add_oci_helper() {
5050
if ! shared_extension "$ext"; then
5151
status='Installed and enabled'
52+
read -r "${ext}_CONFIGURE_PREFIX_OPTS" <<< "CFLAGS=-Wno-incompatible-function-pointer-types"
5253
read -r "${ext}_LINUX_LIBS" <<< "libaio-dev"
5354
read -r "${ext}_CONFIGURE_OPTS" <<< "--with-php-config=$(command -v php-config) --with-${ext/_/-}=instantclient,$oracle_client"
5455
patch_phpize

0 commit comments

Comments
 (0)