diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-04-16 17:04:57 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-04-16 17:04:57 +0200 |
commit | 1221af36df85fbc2c09887afb23a6985a1a1ca69 (patch) | |
tree | 524aa5ae0caa17f293fc6131d479f03c8bc5fa5a /lib/gllib | |
parent | fb0445323d8589e7f20bec0d133ecb7372c35074 (diff) | |
download | libtasn1-1221af36df85fbc2c09887afb23a6985a1a1ca69.tar.gz libtasn1-1221af36df85fbc2c09887afb23a6985a1a1ca69.tar.bz2 libtasn1-1221af36df85fbc2c09887afb23a6985a1a1ca69.zip |
Update gnulib files. Fix compile failure on Mac OS X.
Diffstat (limited to 'lib/gllib')
-rw-r--r-- | lib/gllib/Makefile.am | 8 | ||||
-rw-r--r-- | lib/gllib/dummy.c | 42 |
2 files changed, 49 insertions, 1 deletions
diff --git a/lib/gllib/Makefile.am b/lib/gllib/Makefile.am index 73421a5..87ac01e 100644 --- a/lib/gllib/Makefile.am +++ b/lib/gllib/Makefile.am @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib/gllib --m4-base=lib/glm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --avoid=dummy --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files lib-symbol-versions lib-symbol-visibility stdint +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib/gllib --m4-base=lib/glm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=2 --libtool --macro-prefix=lgl --no-vc-files lib-symbol-versions lib-symbol-visibility stdint AUTOMAKE_OPTIONS = 1.5 gnits @@ -154,6 +154,12 @@ EXTRA_DIST += wchar.in.h ## end gnulib module wchar +## begin gnulib module dummy + +libgnu_la_SOURCES += dummy.c + +## end gnulib module dummy + mostlyclean-local: mostlyclean-generic @for dir in '' $(MOSTLYCLEANDIRS); do \ diff --git a/lib/gllib/dummy.c b/lib/gllib/dummy.c new file mode 100644 index 0000000..5834053 --- /dev/null +++ b/lib/gllib/dummy.c @@ -0,0 +1,42 @@ +/* A dummy file, to prevent empty libraries from breaking builds. + Copyright (C) 2004, 2007 Free Software Foundation, Inc. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create + libraries without any object files. You might get an error like: + + > ar cru .libs/libgl.a + > ar: no archive members specified + + Compiling this file, and adding its object file to the library, will + prevent the library from being empty. */ + +/* Some systems, such as Solaris with cc 5.0, refuse to work with libraries + that don't export any symbol. You might get an error like: + + > cc ... libgnu.a + > ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a + + Compiling this file, and adding its object file to the library, will + prevent the library from exporting no symbols. */ + +#ifdef __sun +/* This declaration ensures that the library will export at least 1 symbol. */ +int gl_dummy_symbol; +#else +/* This declaration is solely to ensure that after preprocessing + this file is never empty. */ +typedef int dummy; +#endif |