mirror of
https://github.com/Ed94/gencpp.git
synced 2025-02-23 13:48:37 -08:00
can't use static globals on static libs
This commit is contained in:
parent
3bce2e9b8a
commit
dda70fce36
@ -26,7 +26,7 @@
|
||||
#endif // GEN_API
|
||||
|
||||
#ifndef global // Global variables
|
||||
# ifdef GEN_DYN_EXPORT
|
||||
# if defined(GEN_STATIC_LINK) || defined(GEN_DYN_LINK)
|
||||
# define global
|
||||
# else
|
||||
# define global static
|
||||
|
@ -263,6 +263,7 @@ if ( $c_lib_static )
|
||||
$compiler_args += $flag_all_c
|
||||
$compiler_args += $flag_updated_cpp_macro
|
||||
$compiler_args += $flag_c11
|
||||
$compiler_args += ($flag_define + 'GEN_STATIC_LINK')
|
||||
|
||||
$linker_args = @()
|
||||
$result = build-simple $path_build $includes $compiler_args $linker_args $unit $path_lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user