Skip to content

Commit

Permalink
mariadb-connector-odbc: fix build on Linux
Browse files Browse the repository at this point in the history
Closes #100474.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
cho-m authored and BrewTestBot committed May 1, 2022
1 parent 51c0498 commit 6eb6f66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Formula/mariadb-connector-odbc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class MariadbConnectorOdbc < Formula
def install
ENV.append_to_cflags "-I#{Formula["mariadb-connector-c"].opt_include}/mariadb"
ENV.append "LDFLAGS", "-L#{Formula["mariadb-connector-c"].opt_lib}/mariadb"
ENV.append "LDFLAGS", "-Wl,-rpath,#{Formula["mariadb-connector-c"].opt_lib}/mariadb" if OS.linux?
system "cmake", ".", "-DMARIADB_LINK_DYNAMIC=1",
"-DWITH_SSL=OPENSSL",
"-DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix}",
Expand Down

0 comments on commit 6eb6f66

Please sign in to comment.