Skip to content
Snippets Groups Projects
Commit 0d3926bb authored by Mark Grondona's avatar Mark Grondona
Browse files

o Temporary fix for improperly formatting DWARF2 debugging table:

   force -gstabs if TotalView support is needed
parent 6a7e8a6e
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ AUTOMAKE_OPTIONS = foreign ...@@ -6,6 +6,7 @@ AUTOMAKE_OPTIONS = foreign
INCLUDES = -I$(top_srcdir) INCLUDES = -I$(top_srcdir)
if WITH_TOTALVIEW if WITH_TOTALVIEW
TVFLAGS = -g -gstabs
SRUN_WRAPPER_OBJ = srun.wrapper.o SRUN_WRAPPER_OBJ = srun.wrapper.o
endif endif
...@@ -40,6 +41,10 @@ convenience_libs = \ ...@@ -40,6 +41,10 @@ convenience_libs = \
$(top_builddir)/src/common/libeio.la \ $(top_builddir)/src/common/libeio.la \
$(top_builddir)/src/api/libslurm.la $(top_builddir)/src/api/libslurm.la
srun_CFLAGS = \
$(CFLAGS) \
$(TVFLAGS)
srun_LDADD = \ srun_LDADD = \
$(SRUN_WRAPPER_OBJ) \ $(SRUN_WRAPPER_OBJ) \
$(convenience_libs) $(convenience_libs)
...@@ -53,17 +58,18 @@ $(convenience_libs) : force ...@@ -53,17 +58,18 @@ $(convenience_libs) : force
srun.wrapper.o: srun.wrapper.c srun.wrapper.o: srun.wrapper.c
if echo $(CC) | grep gcc; then \ if echo $(CC) | grep gcc; then \
$(CC) -S -g $(CFLAGS) $(CPPFLAGS) \ destdir=$(pkglibdir)/src; \
$(top_srcdir)/src/srun/srun.wrapper.c; \ cdir=`cd $(top_srcdir)/src/srun && pwd`; \
dir1=`cd $(top_srcdir) && pwd`; dir2=$(pkglibdir)/src; \ src=$$cdir/srun.wrapper.c; \
perl -i -ple "s|$$dir1/src/srun|$$dir2|g;" srun.wrapper.s; \ cp $$src .; \
perl -i -ple "s|\".*/srun.wrapper.c|\"srun.wrapper.c|g;" \ $(CC) -S -g $(CFLAGS) $(CPPFLAGS) $$src; \
srun.wrapper.s; \ perl -i -ple "s|$$cdir|$$destdir|g;" srun.wrapper.s; \
$(CC) -c -g $(CFLAGS) $(CPPFLAGS) srun.wrapper.s; \ $(COMPILE) -c srun.wrapper.s; \
else \ else \
$(COMPILE) srun.wrapper.c; \ $(COMPILE) -c $(top_srcdir)/src/srun/srun.wrapper.c; \
fi fi
CLEANFILES = \ CLEANFILES = \
srun.wrapper.s srun.wrapper.s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment