diff options
| author | Paul Eggert | 2014-05-18 11:57:04 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-05-18 11:57:04 -0700 |
| commit | 5eda3a751613a5a9338f4e316eda6e425aeae162 (patch) | |
| tree | bc84f75e8358c55aa902df15add6379f7361bd7a | |
| parent | 0d1b87f90e06199963af1704a07f950c0184c0bd (diff) | |
| download | emacs-5eda3a751613a5a9338f4e316eda6e425aeae162.tar.gz emacs-5eda3a751613a5a9338f4e316eda6e425aeae162.zip | |
Port ctags+etags build to Sun C 5.12.
* .bzrignore: Remove lib-src/ctags.c.
* lib-src/Makefile.in (etags_args): Remove, replacing with ...
(etags_cflags, etags_libs): New macros. All uses changed.
(ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in
parallel (once for ctags, once for etags) breaks parallel makes
with compilers that use the source file name to name temporaries,
such as Sun C 5.12. Instead, compile ctags.c.
* lib-src/ctags.c: New file.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 11 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 16 | ||||
| -rw-r--r-- | lib-src/ctags.c | 2 |
4 files changed, 24 insertions, 8 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2014-05-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-05-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Port ctags+etags build to Sun C 5.12. | ||
| 4 | * .bzrignore: Remove lib-src/ctags.c. | ||
| 5 | |||
| 3 | Port recent libpng changes to hosts with missing png.h. | 6 | Port recent libpng changes to hosts with missing png.h. |
| 4 | * configure.ac (HAVE_PNG): Port to platforms where libpng-config | 7 | * configure.ac (HAVE_PNG): Port to platforms where libpng-config |
| 5 | succeeds but png.h is absent, by testing libpng-config's output | 8 | succeeds but png.h is absent, by testing libpng-config's output |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index f571b401584..3fac70b3f73 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2014-05-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port ctags+etags build to Sun C 5.12. | ||
| 4 | * Makefile.in (etags_args): Remove, replacing with ... | ||
| 5 | (etags_cflags, etags_libs): New macros. All uses changed. | ||
| 6 | (ctags${EXEEXT}): Don't compile etags.c, as compiling etags.c in | ||
| 7 | parallel (once for ctags, once for etags) breaks parallel makes | ||
| 8 | with compilers that use the source file name to name temporaries, | ||
| 9 | such as Sun C 5.12. Instead, compile ctags.c. | ||
| 10 | * ctags.c: New file. | ||
| 11 | |||
| 1 | 2014-05-04 Paul Eggert <eggert@cs.ucla.edu> | 12 | 2014-05-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 13 | ||
| 3 | Handle systems without WCONTINUED consistently. (Bug#15110, 17339) | 14 | Handle systems without WCONTINUED consistently. (Bug#15110, 17339) |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 6f25d75db76..3009ff26745 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -311,18 +311,18 @@ regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h) | |||
| 311 | 311 | ||
| 312 | 312 | ||
| 313 | etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h) | 313 | etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h) |
| 314 | etags_args = -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" \ | 314 | etags_cflags = -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" -o $@ |
| 315 | ${srcdir}/etags.c regex.o $(LOADLIBES) $(NTLIB) -o $@ | 315 | etags_libs = regex.o $(LOADLIBES) $(NTLIB) |
| 316 | 316 | ||
| 317 | etags${EXEEXT}: ${etags_deps} | 317 | etags${EXEEXT}: ${etags_deps} |
| 318 | $(CC) ${ALL_CFLAGS} ${etags_args} | 318 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $(srcdir)/etags.c $(etags_libs) |
| 319 | 319 | ||
| 320 | ## ctags.c is distinct from etags.c so that parallel makes do not write two | ||
| 321 | ## etags.o files on top of each other. | ||
| 320 | ## FIXME? | 322 | ## FIXME? |
| 321 | ## Can't we use a symlink ctags -> etags, and make etags check for argv[0]? | 323 | ## Can't we use a wrapper that calls 'etags --ctags'? |
| 322 | ## Or a wrapper script that calls etags --ctags? | 324 | ctags${EXEEXT}: ctags.c ${etags_deps} |
| 323 | ctags${EXEEXT}: ${etags_deps} | 325 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $(srcdir)/ctags.c $(etags_libs) |
| 324 | $(CC) ${ALL_CFLAGS} -DCTAGS ${etags_args} | ||
| 325 | |||
| 326 | 326 | ||
| 327 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \ | 327 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \ |
| 328 | $(config_h) | 328 | $(config_h) |
diff --git a/lib-src/ctags.c b/lib-src/ctags.c new file mode 100644 index 00000000000..0a6838a9dbb --- /dev/null +++ b/lib-src/ctags.c | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #define CTAGS 1 | ||
| 2 | #include "etags.c" | ||