mirror of
https://github.com/crash-utility/crash
synced 2025-02-10 10:26:55 +00:00
Build extension modules that utilize the generic extensions/Makefile
with -g. In addition, build the snap.c extension module with -g. (rabinv@axis.com)
This commit is contained in:
parent
c0eae75272
commit
407ce33ed0
@ -38,12 +38,12 @@ $(CONTRIB_SO): %.so: %.c defs.h
|
||||
else \
|
||||
grep '((constructor))' $*.c > .constructor; \
|
||||
if [ -s .constructor ]; then \
|
||||
echo "gcc -Wall -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)"; \
|
||||
gcc -Wall -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS); \
|
||||
echo "gcc -Wall -g -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)"; \
|
||||
gcc -Wall -g -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS); \
|
||||
fi; \
|
||||
if [ ! -s .constructor ]; then \
|
||||
echo "gcc -Wall -nostartfiles -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)"; \
|
||||
gcc -Wall -nostartfiles -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS); \
|
||||
echo "gcc -Wall -g -nostartfiles -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)"; \
|
||||
gcc -Wall -g -nostartfiles -shared -rdynamic -o $@ $*.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS); \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
|
@ -47,4 +47,4 @@ endif
|
||||
all: snap.so
|
||||
|
||||
snap.so: $(INCDIR)/defs.h snap.c
|
||||
gcc -Wall -I$(INCDIR) -shared -rdynamic -o snap.so snap.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)
|
||||
gcc -Wall -g -I$(INCDIR) -shared -rdynamic -o snap.so snap.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user