File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212/cassandra.log
1313/composer.phar
1414/composer.lock
15- /tmp /*
15+ /tmp /*
Original file line number Diff line number Diff line change 11[submodule "lib/cpp-driver "]
22 path = lib/cpp-driver
3- url = https://github.com/datastax/ cpp-driver.git
3+ url = https://github.com/gold-development/cassandra- cpp-driver.git
Original file line number Diff line number Diff line change 99* .libs
1010* .sw *
1111* .loT
12+ * .dep
1213Makefile
1314Makefile.fragments
1415Makefile.global
@@ -19,6 +20,7 @@ config.*
1920! config.w32
2021configure
2122configure.in
23+ configure.ac
2224.sconf_temp
2325.sconsign.dblite
2426.deps
Original file line number Diff line number Diff line change 4040echo " Compiling and installing the extension..."
4141phpize
4242
43+ # Detect OpenSSL location
44+ if [ -d " /opt/homebrew/opt/openssl@3" ]; then
45+ OPENSSL_PREFIX=" /opt/homebrew/opt/openssl@3"
46+ elif [ -d " /opt/homebrew/opt/openssl" ]; then
47+ OPENSSL_PREFIX=" /opt/homebrew/opt/openssl"
48+ elif [ -d " /usr/local/opt/openssl" ]; then
49+ OPENSSL_PREFIX=" /usr/local/opt/openssl"
50+ else
51+ OPENSSL_PREFIX=" "
52+ fi
53+
4354echo ./configure --with-cassandra=$builddir --with-libdir=lib
44- LIBS=" -lssl -lz -luv -lm -lstdc++" LDFLAGS=" -L$builddir /lib" ./configure --with-cassandra=$builddir --with-libdir=lib
55+ if [ -n " $OPENSSL_PREFIX " ]; then
56+ LIBS=" -lssl -lcrypto -lz -luv -lm -lstdc++" LDFLAGS=" -L$builddir /lib -L$OPENSSL_PREFIX /lib" ./configure --with-cassandra=$builddir --with-libdir=lib
57+ else
58+ LIBS=" -lssl -lcrypto -lz -luv -lm -lstdc++" LDFLAGS=" -L$builddir /lib" ./configure --with-cassandra=$builddir --with-libdir=lib
59+ fi
4560make
4661make install
4762
You can’t perform that action at this time.
0 commit comments