Skip to content

Commit

Permalink
modify compiler flags
Browse files Browse the repository at this point in the history
Signed-off-by: poorndm <[email protected]>
  • Loading branch information
poorndm committed Jul 22, 2024
1 parent 02fa677 commit 01ba859
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/software/keydb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
env = with_standard_compiler_flags(with_embedded_path)
env["CFLAGS"] << " -I#{install_dir}/embedded/include"
env["LDFLAGS"] << " -L#{install_dir}/embedded/lib"
env["CFLAGS"]="-I#{install_dir}/embedded/include -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -I#{install_dir}/embedded/include"
env["CPPFLAGS"]="-I#{install_dir}/embedded/include -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -I#{install_dir}/embedded/include"
env["CXXFLAGS"]="-std=c++17 -I#{install_dir}/embedded/include -O3 -D_FORTIFY_SOURCE=2 -fstack-protector -I#{install_dir}/embedded/include"
env["LDFLAGS"]="-Wl,-rpath,#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -L#{install_dir}/embedded/lib"


update_config_guess

Expand Down
1 change: 1 addition & 0 deletions config/software/libuuid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

license "LGPL-2.1"
license_file "COPYING"
skip_transitive_dependency_licensing true

source url: "https://www.kernel.org/pub/linux/utils/util-linux/v#{version}/util-linux-#{version}.tar.gz"
# We use the version in util-linux, and only build the libuuid subdirectory
Expand Down

0 comments on commit 01ba859

Please sign in to comment.