History

build: replace exported symbols regex with a list

Replace the hideous exported symbols regex with a simple list. The regex is completely unreadable and causes build errors on Solaris.

Mans Rullgard committed 6 years ago

Commit d9ae1dd1 parent 6ff0e932 files · +98 −1Browse files

Unified · Split

2 files
  1. src/Makefile.am +3 −1
  2. src/libsox.sym +95 −0
src/Makefile.am+3−1
@@ -87,7 +87,9 @@ endif · 86 unmodified lines
87 87
88libsox_la_CFLAGS =88libsox_la_CFLAGS =
89libsox_la_LDFLAGS = -no-undefined -version-info @SHLIB_VERSION@ \89libsox_la_LDFLAGS = -no-undefined -version-info @SHLIB_VERSION@ \
90 -export-symbols-regex '^(sox_.*|lsx_(([cm]|re)alloc.*|check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|error|fail_errno|filelength|find_(enum_(text|value)|file_extension)|flush|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|rewind|seeki|sigfigs3p?|strcasecmp|strdup|tell|unreadb|write(b|_b_buf|buf|s)))$$'90 -export-symbols $(srcdir)/libsox.sym
91
92EXTRA_libsox_la_DEPENDENCIES = $(srcdir)/libsox.sym
91 93
92if HAVE_LIBLTDL94if HAVE_LIBLTDL
93 libsox_la_CFLAGS += $(LIBLTDL_CFLAGS)95 libsox_la_CFLAGS += $(LIBLTDL_CFLAGS)
src/libsox.sym+95−0
@@ -0,0 +1,95 @@
1lsx_calloc
2lsx_check_read_params
3lsx_close_dllibrary
4lsx_debug_impl
5lsx_debug_more_impl
6lsx_debug_most_impl
7lsx_eof
8lsx_error
9lsx_fail_errno
10lsx_fail_impl
11lsx_filelength
12lsx_find_enum_text
13lsx_find_enum_value
14lsx_find_file_extension
15lsx_flush
16lsx_getopt
17lsx_getopt_init
18lsx_lpc10_create_decoder_state
19lsx_lpc10_create_encoder_state
20lsx_lpc10_decode
21lsx_lpc10_encode
22lsx_malloc
23lsx_open_dllibrary
24lsx_rawread
25lsx_rawwrite
26lsx_read_b_buf
27lsx_readbuf
28lsx_readchars
29lsx_realloc
30lsx_realloc_array
31lsx_report_impl
32lsx_rewind
33lsx_seeki
34lsx_sigfigs3
35lsx_sigfigs3p
36lsx_strcasecmp
37lsx_strdup
38lsx_tell
39lsx_unreadb
40lsx_warn_impl
41lsx_write_b_buf
42lsx_writeb
43lsx_writebuf
44lsx_writes
45sox_add_effect
46sox_append_comment
47sox_append_comments
48sox_basename
49sox_close
50sox_copy_comments
51sox_create_effect
52sox_create_effects_chain
53sox_delete_comments
54sox_delete_effect
55sox_delete_effect_last
56sox_delete_effects
57sox_delete_effects_chain
58sox_effect_options
59sox_effects_clips
60sox_find_comment
61sox_find_effect
62sox_find_format
63sox_flow_effects
64sox_format_init
65sox_format_quit
66sox_format_supports_encoding
67sox_get_effect_fns
68sox_get_effects_globals
69sox_get_encodings_info
70sox_get_format_fns
71sox_get_globals
72sox_init
73sox_init_encodinginfo
74sox_is_playlist
75sox_num_comments
76sox_open_mem_read
77sox_open_mem_write
78sox_open_memstream_write
79sox_open_read
80sox_open_write
81sox_parse_playlist
82sox_pop_effect_last
83sox_precision
84sox_push_effect_last
85sox_quit
86sox_read
87sox_seek
88sox_stop_effect
89sox_strerror
90sox_trim_clear_start
91sox_trim_get_start
92sox_version
93sox_version_info
94sox_write
95sox_write_handler

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t