|
@@ -25,15 +25,15 @@ package("libelf")
|
|
|
io.replace("./configure", "#define off_t long", "")
|
|
|
io.replace("lib/private.h", "HAVE_MEMMOVE", "1")
|
|
|
io.replace("lib/private.h", "HAVE_MEMCPY", "1")
|
|
|
+ io.replace("lib/private.h", "STDC_HEADERS", "1")
|
|
|
table.insert(cxflags, "-D__LIBELF64=1")
|
|
|
- table.insert(cxflags, "-D__LIBELF64_LINUX=1")
|
|
|
table.insert(cxflags, "-D__libelf_u64_t=uint64_t")
|
|
|
table.insert(cxflags, "-D__libelf_i64_t=int64_t")
|
|
|
package:add("defines", "__LIBELF64=1")
|
|
|
- package:add("defines", "__LIBELF64_LINUX=1")
|
|
|
package:add("defines", "__libelf_u64_t=uint64_t")
|
|
|
package:add("defines", "__libelf_i64_t=int64_t")
|
|
|
end
|
|
|
+ io.replace("./configure", "main(){return(0);}", "int main(){return(0);}", {plain = true})
|
|
|
import("package.tools.autoconf").install(package, configs, {cxflags = cxflags})
|
|
|
end)
|
|
|
|