Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
tdkscms
omnibus-gitlab
Commits
1fe6168a
Commit
1fe6168a
authored
Aug 12, 2024
by
徐豪
Browse files
8121431
parent
f3863c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
config/software/gitaly.rb
config/software/gitaly.rb
+9
-2
No files found.
config/software/gitaly.rb
View file @
1fe6168a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment