* Fixed linux build options in makefile.
This commit is contained in:
parent
c811812726
commit
5007ef2d20
|
@ -1,10 +1,10 @@
|
|||
|
||||
CFLAGS = -I/opt/local/include -Wall -DNDEBUG -O3
|
||||
#CFLAGS = -I/opt/local/include -Wall -g
|
||||
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lz -lm
|
||||
LDFLAGS = -L/opt/local/lib -g -ldl -lgmp -lm
|
||||
CC = gcc
|
||||
|
||||
ifeq ($(shell /usr/bin/uname), "Linux")
|
||||
ifeq ("$(shell uname)", "Linux")
|
||||
LDFLAGS += -rdynamic # dlsym(local_symbol) won't work otherwise
|
||||
endif
|
||||
|
||||
|
@ -57,7 +57,7 @@ ikarus.h: ikarus-data.h
|
|||
touch ikarus.h
|
||||
|
||||
clean:
|
||||
rm -f $(obj)
|
||||
rm -f $(objects)
|
||||
|
||||
realclean:
|
||||
rm -f $(obj) ikarus
|
||||
rm -f $(objects) ikarus
|
||||
|
|
BIN
bin/ikarus
BIN
bin/ikarus
Binary file not shown.
|
@ -13,7 +13,6 @@
|
|||
#include <sys/mman.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
#ifndef RTLD_DEFAULT
|
||||
#define RTLD_DEFAULT 0
|
||||
|
|
|
@ -170,6 +170,8 @@ int main(int argc, char** argv){
|
|||
}
|
||||
|
||||
#if 0
|
||||
Notice how the bsd manpages have incorrect type for the handler.
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
struct sigaction {
|
||||
|
@ -189,7 +191,7 @@ int main(int argc, char** argv){
|
|||
struct sigaction * restrict oact);
|
||||
#endif
|
||||
|
||||
void handler(int signo, struct __siginfo* info, void* uap){
|
||||
void handler(int signo, siginfo_t* info, void* uap){
|
||||
the_pcb->engine_counter = -1;
|
||||
the_pcb->interrupted = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue