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
ef6f1ba5
Commit
ef6f1ba5
authored
Aug 12, 2024
by
徐豪
Browse files
8121518
parent
1fe6168a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
config/software/gitaly.rb
config/software/gitaly.rb
+5
-9
No files found.
config/software/gitaly.rb
View file @
ef6f1ba5
...
...
@@ -48,17 +48,13 @@ source git: version.remote
build
do
env
=
with_standard_compiler_flags
(
with_embedded_path
)
#
设置包含路径和链接
路径
#
修正CFLAGS和LDFLAGS以显式指定iconv库
路径
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"
env
[
"LDFLAGS"
]
<<
" -L/opt/gitlab/embedded/lib -L/opt/gitlab/embedded/lib -liconv"
# 打印出环境变量,帮助调试
command
"echo 'CFLAGS is
#{
env
[
"CFLAGS"
]
}
'"
command
"echo 'LDFLAGS is
#{
env
[
"LDFLAGS"
]
}
'"
command
"echo 'LD_LIBRARY_PATH is
#{
env
[
"LD_LIBRARY_PATH"
]
}
'"
# 确认环境变量设置是否正确
command
"echo $CFLAGS"
command
"echo $LDFLAGS"
if
Build
::
Check
.
use_system_ssl?
env
[
'CMAKE_FLAGS'
]
=
OpenSSLHelper
.
cmake_flags
...
...
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