updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / rtmidi / rtmidi-1.0.15-shared.patch
blob605ca3efccf9997175679f7e295bb968fb1e3250
1 diff -up rtmidi-1.0.15/RtMidi.cpp.shared rtmidi-1.0.15/RtMidi.cpp
2 --- rtmidi-1.0.15/RtMidi.cpp.shared 2011-08-11 11:35:36.000000000 -0400
3 +++ rtmidi-1.0.15/RtMidi.cpp 2011-09-01 14:42:29.566777271 -0400
4 @@ -69,7 +69,7 @@ void RtMidi :: error( RtError::Type type
5 // Common RtMidiIn Definitions
6 //*********************************************************************//
8 -RtMidiIn :: RtMidiIn( const std::string clientName, unsigned int queueSizeLimit ) : RtMidi()
9 +extern __attribute__((visibility("default"))) RtMidiIn :: RtMidiIn( const std::string clientName, unsigned int queueSizeLimit ) : RtMidi()
11 this->initialize( clientName );
13 @@ -147,7 +147,7 @@ double RtMidiIn :: getMessage( std::vect
14 // Common RtMidiOut Definitions
15 //*********************************************************************//
17 -RtMidiOut :: RtMidiOut( const std::string clientName ) : RtMidi()
18 +extern __attribute__((visibility("default"))) RtMidiOut :: RtMidiOut( const std::string clientName ) : RtMidi()
20 this->initialize( clientName );
22 diff -up rtmidi-1.0.15/RtMidi.h.shared rtmidi-1.0.15/RtMidi.h
23 --- rtmidi-1.0.15/RtMidi.h.shared 2011-08-11 11:35:43.000000000 -0400
24 +++ rtmidi-1.0.15/RtMidi.h 2011-09-01 14:43:15.016302622 -0400
25 @@ -97,7 +97,7 @@ class RtMidi
27 #include <vector>
29 -class RtMidiIn : public RtMidi
30 +class __attribute__((visibility("default"))) RtMidiIn : public RtMidi
32 public:
34 @@ -246,7 +246,7 @@ o By default, MIDI timing and activ
36 /**********************************************************************/
38 -class RtMidiOut : public RtMidi
39 +class __attribute__((visibility("default"))) RtMidiOut : public RtMidi
41 public:
43 diff -up rtmidi-1.0.15/tests/Makefile.in.shared rtmidi-1.0.15/tests/Makefile.in
44 --- rtmidi-1.0.15/tests/Makefile.in.shared 2011-04-18 10:28:46.000000000 -0400
45 +++ rtmidi-1.0.15/tests/Makefile.in 2011-09-01 14:21:43.953321707 -0400
46 @@ -8,13 +8,13 @@ INCLUDE = ..
47 OBJECT_PATH = @object_path@
48 vpath %.o $(OBJECT_PATH)
50 -OBJECTS = RtMidi.o
51 +OBJECTS =
53 CC = @CXX@
54 DEFS = @CPPFLAGS@
55 CFLAGS = @CXXFLAGS@
56 CFLAGS += -I$(INCLUDE)
57 -LIBRARY = @LIBS@
58 +LIBRARY = @LIBS@ @@LIBRTMIDI@@
60 %.o : $(SRC_PATH)/%.cpp
61 $(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
62 @@ -22,19 +22,19 @@ LIBRARY = @LIBS@
63 all : $(PROGRAMS)
65 midiprobe : midiprobe.cpp $(OBJECTS)
66 - $(CC) $(CFLAGS) $(DEFS) -o midiprobe midiprobe.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
67 + $(CC) $(CFLAGS) $(DEFS) -o midiprobe midiprobe.cpp $(LIBRARY)
69 midiout : midiout.cpp $(OBJECTS)
70 - $(CC) $(CFLAGS) $(DEFS) -o midiout midiout.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
71 + $(CC) $(CFLAGS) $(DEFS) -o midiout midiout.cpp $(LIBRARY)
73 qmidiin : qmidiin.cpp $(OBJECTS)
74 - $(CC) $(CFLAGS) $(DEFS) -o qmidiin qmidiin.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
75 + $(CC) $(CFLAGS) $(DEFS) -o qmidiin qmidiin.cpp $(LIBRARY)
77 cmidiin : cmidiin.cpp $(OBJECTS)
78 - $(CC) $(CFLAGS) $(DEFS) -o cmidiin cmidiin.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
79 + $(CC) $(CFLAGS) $(DEFS) -o cmidiin cmidiin.cpp $(LIBRARY)
81 sysextest : sysextest.cpp $(OBJECTS)
82 - $(CC) $(CFLAGS) $(DEFS) -o sysextest sysextest.cpp $(OBJECT_PATH)/RtMidi.o $(LIBRARY)
83 + $(CC) $(CFLAGS) $(DEFS) -o sysextest sysextest.cpp $(LIBRARY)
85 clean :
86 $(RM) -f $(OBJECT_PATH)/*.o