Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YGOPRO-520DIY
ygopro
Commits
0522a080
Commit
0522a080
authored
Jun 03, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
premake: add glibc detect and add dl back
parent
2cfeac47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
gframe/premake5.lua
gframe/premake5.lua
+3
-0
premake5.lua
premake5.lua
+21
-0
No files found.
gframe/premake5.lua
View file @
0522a080
...
...
@@ -109,3 +109,6 @@ project "YGOPro"
links
{
"IrrKlang"
}
linkoptions
{
IRRKLANG_LINK_RPATH
}
end
if
GLIBC_VERSION
<
546
then
-- glibc less than 2.34
links
{
"dl"
,
"pthread"
}
end
premake5.lua
View file @
0522a080
...
...
@@ -258,6 +258,27 @@ if os.istarget("macosx") then
end
end
function
getGlibcVersion
()
local
output
=
os
.
outputof
(
"getconf GNU_LIBC_VERSION"
)
local
major
,
minor
=
output
:
match
(
"glibc (%d+)%.(%d+)"
)
if
major
and
minor
then
major
=
tonumber
(
major
)
minor
=
tonumber
(
minor
)
return
(
major
<<
8
)
|
minor
end
return
0
end
GLIBC_VERSION
=
0
if
os
.
ishost
(
"linux"
)
then
GLIBC_VERSION
=
getGlibcVersion
()
if
GLIBC_VERSION
>
0
then
print
(
"Detected glibc version: "
..
string.format
(
"%d.%d"
,
GLIBC_VERSION
>>
8
,
GLIBC_VERSION
&
0xFF
))
else
print
(
"Could not detect glibc version, assuming it is sufficient."
)
end
end
workspace
"YGOPro"
location
"build"
language
"C++"
...
...
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