Skip to content
This repository has been archived by the owner on Aug 28, 2021. 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 87a328d commit ab8dbe4
Show file tree
Hide file tree
Showing 5 changed files with 7,472 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {
id 'c'
}

def versionObj = new Version(major: 0, minor: 1, revision: 0)
def versionObj = new Version(major: 0, minor: 1, revision: 1)
version "${versionObj}"

apply from: 'toolchains.gradle'
Expand Down Expand Up @@ -275,6 +275,15 @@ model {
// }
it.lib library: 'freebsd_headers', linkage: 'api'
}
if(isGlibc(targetPlatform)) {
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 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 ab8dbe4

Please sign in to comment.