Commit 1fe6168a authored by 徐豪's avatar 徐豪
Browse files

8121431

parent f3863c3e
......@@ -48,11 +48,18 @@ source git: version.remote
build do
env = with_standard_compiler_flags(with_embedded_path)
# 手动设置编译器和链接器标志
# 设置包含路径和链接路径
env["CFLAGS"] << " -I/opt/gitlab/embedded/include"
env["LDFLAGS"] << " -L/opt/gitlab/embedded/lib -liconv"
# 为了解决libtinfo.so.6问题添加额外的库路径和LD_LIBRARY_PATH
env["LD_LIBRARY_PATH"] = "/opt/gitlab/embedded/lib"
# 打印出环境变量,帮助调试
command "echo 'CFLAGS is #{env["CFLAGS"]}'"
command "echo 'LDFLAGS is #{env["LDFLAGS"]}'"
command "echo 'LD_LIBRARY_PATH is #{env["LD_LIBRARY_PATH"]}'"
if Build::Check.use_system_ssl?
env['CMAKE_FLAGS'] = OpenSSLHelper.cmake_flags
env['PKG_CONFIG_PATH'] = OpenSSLHelper.pkg_config_dirs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment