Remove newer GLIBC features using CFLAGS instead of code
This commit is contained in:
parent
61612ebd02
commit
7bee2e5c1f
|
@ -2,7 +2,7 @@
|
|||
* LinuxHelperFunctions.c
|
||||
*
|
||||
* Created on: Mar 10, 2015
|
||||
* Last Updated on: Aug 02, 2018
|
||||
* Last Updated on: Aug 10, 2018
|
||||
* Author: Will Hedgecock
|
||||
*
|
||||
* Copyright (C) 2012-2018 Fazecast, Inc.
|
||||
|
@ -36,16 +36,8 @@
|
|||
#include <unistd.h>
|
||||
#include "LinuxHelperFunctions.h"
|
||||
|
||||
// Remove reliance on newer glibc features
|
||||
extern int ioctl(int __fd, unsigned long int __request, ...) __THROW;
|
||||
void __chk_fail (void) __attribute__((__noreturn__));
|
||||
long int __fdelt_warn(long int a)
|
||||
{
|
||||
if (a >= FD_SETSIZE)
|
||||
__chk_fail();
|
||||
return a / __NFDBITS;
|
||||
}
|
||||
long int __fdelt_chk(long int) __attribute__((weak, alias("__fdelt_warn")));
|
||||
// Explicitly define the ioctl function signature
|
||||
extern int ioctl(int __fd, unsigned long int __request, ...);
|
||||
|
||||
void push_back(struct charTupleVector* vector, const char* firstString, const char* secondString, const char* thirdString)
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ LINK := gcc
|
|||
LINK_ARM32 := arm32-unknown-linux-gnueabi-gcc
|
||||
LINK_ARM32HF := arm32hf-unknown-linux-gnueabi-gcc
|
||||
LINK_ARM64 := aarch64-unknown-linux-gnueabi-gcc
|
||||
CFLAGS := -fPIC -static-libgcc -Os -flto -fuse-linker-plugin
|
||||
CFLAGS := -fPIC -static-libgcc -Os -flto -fuse-linker-plugin -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
|
||||
LDFLAGS := -shared -static-libgcc -flto -fuse-linker-plugin -Os
|
||||
INCLUDES := -I"$(JDK_HOME)/include" -I"$(JDK_HOME)/include/linux"
|
||||
LIBRARIES :=
|
||||
|
|
Loading…
Reference in New Issue