| 1 |
/* A dummy file, to prevent empty libraries from breaking builds. |
| 2 |
|
| 3 |
This file is in the public domain. -- Bruno Haible */ |
| 4 |
|
| 5 |
/* Some systems, reportedly OpenBSD and Mac OS X, refuse to create |
| 6 |
libraries without any object files. You might get an error like: |
| 7 |
|
| 8 |
> ar cru .libs/libgl.a |
| 9 |
> ar: no archive members specified |
| 10 |
|
| 11 |
Compiling this file, and adding its object file to the library, will |
| 12 |
prevent the library from being empty. */ |
| 13 |
|
| 14 |
/* Some systems, such as Solaris with cc 5.0, refuse to work with libraries |
| 15 |
that don't export any symbol. You might get an error like: |
| 16 |
|
| 17 |
> cc ... libgnu.a |
| 18 |
> ild: (bad file) garbled symbol table in archive ../gllib/libgnu.a |
| 19 |
|
| 20 |
Compiling this file, and adding its object file to the library, will |
| 21 |
prevent the library from exporting no symbols. */ |
| 22 |
|
| 23 |
#ifdef __sun |
| 24 |
/* This declaration ensures that the library will export at least 1 symbol. */ |
| 25 |
int gl_dummy_symbol; |
| 26 |
#else |
| 27 |
/* This declaration is solely to ensure that after preprocessing |
| 28 |
this file is never empty. */ |
| 29 |
typedef int dummy; |
| 30 |
#endif |