mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 11:45:38 +02:00
Fix a bug reported by Gene Sally about double free.
This commit is contained in:
parent
819165945a
commit
f0a1717ced
4 changed files with 18 additions and 7 deletions
|
@ -5,14 +5,25 @@ JDK_INCLUDES=/usr/java/include
|
|||
JDK_OS_INCLUDES=/usr/java/include/solaris
|
||||
|
||||
CC=gcc
|
||||
LIB_NAME = libspawner.so
|
||||
LIB_NAME_FULL = ../os/solaris/sparc/libspawner.so
|
||||
OBJS=spawner.o io.o exec_unix.o pfind.o
|
||||
CPPFLAGS = -I. -I$(JDK_INCLUDES) -I$(JDK_OS_INCLUDES)
|
||||
CFLAGS +=-fpic -D_REENTRANT
|
||||
|
||||
spawner : $(OBJS)
|
||||
$(CC) -g -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(OBJS) -lc
|
||||
LIB_NAME_SPAWNER = libspawner.so
|
||||
LIB_NAME_FULL_SPAWNER = ../os/solaris/sparc/libspawner.so
|
||||
OBJS_SPAWNER=spawner.o io.o exec_unix.o pfind.o
|
||||
|
||||
LIB_NAME_PTY = libpty.so
|
||||
LIB_NAME_FULL_PTY = ../os/solaris/sparc/libpty.so
|
||||
OBJS_PTY=openpty.o pty.o ptyio.o
|
||||
|
||||
all: $(LIB_NAME_FULL_SPAWNER) $(LIB_NAME_FULL_PTY)
|
||||
|
||||
$(LIB_NAME_FULL_SPAWNER): $(OBJS_SPAWNER)
|
||||
$(CC) -g -shared -Wl,-soname,$(LIB_NAME_SPAWNER) -o $(LIB_NAME_FULL_SPAWNER) $(OBJS_SPAWNER) -lc
|
||||
|
||||
$(LIB_NAME_FULL_PTY): $(OBJS_PTY)
|
||||
$(CC) -g -shared -Wl,-soname,$(LIB_NAME_PTY) -o $(LIB_NAME_FULL_PTY) $(OBJS_PTY)
|
||||
|
||||
clean :
|
||||
rm $(OBJS)
|
||||
$(RM) $(OBJS_SPAWNER) $(LIB_NAME_FULL_SPAWNER)
|
||||
$(RM) $(OBJS_PTY) $(LIB_NAME_FULL_PTY)
|
||||
|
|
|
@ -29,7 +29,7 @@ exec0(const char *path, char *const argv[], char *const envp[],
|
|||
return -1;
|
||||
}
|
||||
} else {
|
||||
full_path = path;
|
||||
full_path = strdup(path);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
BIN
core/org.eclipse.cdt.core.solaris/os/solaris/sparc/libpty.so
Normal file
BIN
core/org.eclipse.cdt.core.solaris/os/solaris/sparc/libpty.so
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue