Skip to content
This repository has been archived by the owner on Apr 10, 2023. It is now read-only.

Commit

Permalink
Target glibc 2.22 (released 2015-08-14)
Browse files Browse the repository at this point in the history
  • Loading branch information
natanbc committed Nov 15, 2020
1 parent fec1b5a commit d8ba850
Show file tree
Hide file tree
Showing 6 changed files with 7,475 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'com.jfrog.bintray' version '1.8.5'
}

def versionObj = new Version(major: 0, minor: 7, revision: 2)
def versionObj = new Version(major: 0, minor: 7, revision: 3)

group 'com.github.natanbc'
version "${versionObj}"
Expand Down Expand Up @@ -136,4 +136,5 @@ class Version {
String toString() {
"${major}.${minor}" + (revision == "0" ? "" : ".${revision}")
}
}
}

10 changes: 10 additions & 0 deletions natives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ model {
if(isFreebsd(targetPlatform)) {
lib library: 'freebsd_headers', linkage: 'api'
}
if(isGlibc(targetPlatform)) {
def base = project.projectDir.toString()
def suffix = isX86_64(targetPlatform) ? "x86-64"
: isX86_32(targetPlatform) ? "x86" : null
if(suffix != null) {
def path = new File(project.projectDir, "glibc/force_link_glibc_2.22_${suffix}.h").getAbsolutePath()
cCompiler.args << "-include" << path
cppCompiler.args << "-include" << path
}
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions natives/glibc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# glibc version headers

See [this](https://github.com/wheybags/glibc_version_header)

Loading

0 comments on commit d8ba850

Please sign in to comment.