| 1 |
Description: patch build process (the hard way) to use system hiredis lib |
| 2 |
Forwarded: not-needed |
| 3 |
Author: Marc Haber <[email protected]> |
| 4 |
Reviewed-by: gregor herrmann <[email protected]> |
| 5 |
Last-Update: 2024-03-24 |
| 6 |
|
| 7 |
--- a/builder/MyBuilder.pm |
| 8 |
+++ b/builder/MyBuilder.pm |
| 9 |
@@ -13,8 +13,8 @@ |
| 10 |
generate_ppport_h => 'src/ppport.h', |
| 11 |
c_source => 'src', |
| 12 |
xs_files => { './src/Redis__Fast.xs' => './lib/Redis/Fast.xs', }, |
| 13 |
|
| 14 |
|
| 15 |
+ include_dirs => ['src', '/usr/include', '/usr/include/hiredis'], |
| 16 |
+ extra_linker_flags => ["-lhiredis", "-lhiredis_ssl", "-lssl", "-lcrypto"], |
| 17 |
|
| 18 |
test_requires => { |
| 19 |
"Digest::SHA" => "0", |
| 20 |
@@ -41,12 +41,6 @@ |
| 21 |
} else { |
| 22 |
$make = $Config{make}; |
| 23 |
} |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
return $self; |
| 31 |
} |
| 32 |
|
| 33 |
--- a/src/Redis__Fast.xs |
| 34 |
+++ b/src/Redis__Fast.xs |
| 35 |
@@ -4,8 +4,8 @@ |
| 36 |
#include "XSUB.h" |
| 37 |
|
| 38 |
#include "ppport.h" |
| 39 |
|
| 40 |
|
| 41 |
+#include <hiredis.h> |
| 42 |
+#include <hiredis_ssl.h> |
| 43 |
#include "async.h" |
| 44 |
|
| 45 |
#include <string.h> |