Skip to content

Commit 2d7659d

Browse files
committed
openssl
1 parent 5f0bb53 commit 2d7659d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

build.zig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@ pub fn build(b: *Build) !void {
1717

1818
b.installArtifact(lib);
1919

20+
// OpenSSL configuration options - these will be passed through to pg.zig
21+
// If not specified, pg.zig will disable OpenSSL support
22+
const openssl_lib_name = b.option([]const u8, "openssl_lib_name", "OpenSSL library name (e.g., 'ssl')");
23+
const openssl_lib_path = b.option(Build.LazyPath, "openssl_lib_path", "Path to OpenSSL library directory");
24+
const openssl_include_path = b.option(Build.LazyPath, "openssl_include_path", "Path to OpenSSL include directory");
25+
2026
const pg_dep = b.dependency("pg", .{
2127
.target = target,
2228
.optimize = optimize,
23-
.openssl_lib_name = "ssl",
29+
.openssl_lib_name = openssl_lib_name,
30+
.openssl_lib_path = openssl_lib_path,
31+
.openssl_include_path = openssl_include_path,
2432
});
2533

2634
const jetcommon_dep = b.dependency("jetcommon", .{

build.zig.zon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
.hash = "jetcommon-0.1.0-jPY_DdhIAAAk0zqZQf6adpaL5s2g115R8TDZ9j-VboCO",
1010
},
1111
.pg = .{
12-
.url = "https://github.com/karlseguin/pg.zig/archive/4c2602bad095f9d85b16711d12aa3a2bc7e169cc.tar.gz",
13-
.hash = "pg-0.0.0-Wp_7gQ8FBgCRArfpYn9OdkUhGOUHVRXxB6h9S6lYu7bC",
12+
.url = "https://github.com/karlseguin/pg.zig/archive/f8d4892387fbad2abdf775783e101e50a7114335.tar.gz",
13+
.hash = "pg-0.0.0-Wp_7gag6BgD_QAZrPhNNEGpnUZR_LEkKT40Ura3p-4yX",
1414
},
1515
},
1616
.paths = .{

0 commit comments

Comments
 (0)