Skip to content

Commit

Permalink
Merge pull request PistonDevelopers#234 from hauzer/master
Browse files Browse the repository at this point in the history
Building of example fails on x86_64-w64-mingw32 with unresolved references due to wrong linking order
  • Loading branch information
brendanzab committed Oct 20, 2014
2 parents 84b7ec3 + ea19a23 commit b7c3bed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ffi/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(target_os="windows")]
#[link(name = "opengl32")]
#[link(name = "gdi32")]
extern {}

#[cfg(feature = "glfw-sys")]
#[link(name = "glfw3", kind = "static")]
extern {}
Expand All @@ -27,6 +22,11 @@ extern {}
#[link(name = "glfw3")]
extern {}

#[cfg(target_os="windows")]
#[link(name = "opengl32")]
#[link(name = "gdi32")]
extern {}

#[cfg(target_os="linux")]
#[link(name = "X11")]
#[link(name = "GL")]
Expand Down

0 comments on commit b7c3bed

Please sign in to comment.