~stub/ubuntu/wily/librdkafka/hack

« back to all changes in this revision

Viewing changes to lds-gen.pl

  • Committer: Package Import Robot
  • Author(s): Faidon Liambotis
  • Date: 2014-02-18 02:21:43 UTC
  • mfrom: (1.1.2) (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140218022143-3g5lbea2mtwjkk37
Tags: 0.8.3-1
* New upstream release.
  - Multiple internal symbols hidden; breaks ABI without a SONAME bump, but
    these were internal and should not break any applications, packaged or
    not.
* Update Standards-Version to 3.9.5, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env perl
 
2
#
 
3
 
 
4
#
 
5
# Generate linker script to only expose symbols of the public API
 
6
#
 
7
 
 
8
open(IN, "<rdkafka.h") or die("Failed to open rdkafka.h: $!\n");
 
9
 
 
10
@funcs = ();
 
11
while (<IN>) {
 
12
    push(@funcs, $2) if /^(\S+.*\s+\**)?(rd_kafka_\S+)\s+\(/;
 
13
}
 
14
close(IN);
 
15
 
 
16
print "# Automatically generated by lds-gen.pl - DO NOT EDIT\n";
 
17
print "{\n global:\n";
 
18
foreach my $f (sort @funcs) {
 
19
    print "    $f;\n";
 
20
}
 
21
 
 
22
print " local:\n    *;\n};\n";