Skip to content

Commit

Permalink
Modify compiler flags - to fix KeyDb compilation issue (#1923)
Browse files Browse the repository at this point in the history
* modify compiler flags

Signed-off-by: poorndm <[email protected]>

Fix syntax

Signed-off-by: poorndm <[email protected]>

remove extra space

Signed-off-by: poorndm <[email protected]>

update for keydb build

Signed-off-by: poorndm <[email protected]>

modified LDFLAG to fix libatomic linking issue

Signed-off-by: poorndm <[email protected]>

update ldflag

Signed-off-by: poorndm <[email protected]>

modify keydb version - 6.3.4

Signed-off-by: poorndm <[email protected]>

set flags to suse

Signed-off-by: poorndm <[email protected]>

* revert libuuid changes

Signed-off-by: poorndm <[email protected]>

---------

Signed-off-by: poorndm <[email protected]>
  • Loading branch information
poorndm authored Aug 16, 2024
1 parent 1659822 commit cd0dbdf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions config/software/keydb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@

# version_list: url=https://github.com/Snapchat/KeyDB/archive/refs/tags/ filter=*.tar.gz
version("6.3.4") { source sha256: "229190b251f921e05aff7b0d2f04b5676c198131e2abbec1e2cfb2e61215e2f3" }
version("6.3.1") { source sha256: "851b91e14dc3e9c973a1870acdc5f2938ad51a12877e64e7716d9e9ae91ce389" }

build do
env = with_standard_compiler_flags(with_embedded_path)
env = with_standard_compiler_flags(with_embedded_path).merge(
"PREFIX" => "#{install_dir}/embedded"
)
env["CFLAGS"] << " -I#{install_dir}/embedded/include"
env["LDFLAGS"] << " -L#{install_dir}/embedded/lib"

if suse?
env["CFLAGS"] << " -fno-lto"
env["CXXFLAGS"] << " -fno-lto"
end
update_config_guess

command "make" , env: env
command "make install", env: env
make "-j #{workers}", env: env
make "install", env: env
end

0 comments on commit cd0dbdf

Please sign in to comment.