remove unneeded linker args to make it work on stable

This commit is contained in:
Robin Appelman 2019-03-18 17:11:45 +01:00
commit c5451b09db
4 changed files with 1 additions and 5 deletions

View file

@ -2,7 +2,7 @@
## Usage ## Usage
- build with `cargo +nightly build` - build with `cargo build`
- run php with the module and call the defined method - run php with the module and call the defined method
```bash ```bash
php -d extension=target/debug/libhelloworld.so -r 'helloworld();'` php -d extension=target/debug/libhelloworld.so -r 'helloworld();'`

View file

@ -1,5 +1,4 @@
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(link_args)]
extern crate libc; extern crate libc;
extern crate php; extern crate php;
@ -9,7 +8,6 @@ use php::*;
use zend::*; use zend::*;
use php::info::*; use php::info::*;
#[link_args = "-Wl,-undefined,dynamic_lookup"]
extern { extern {
pub fn php_printf(format: *const c_char , ...) -> size_t; pub fn php_printf(format: *const c_char , ...) -> size_t;
} }

View file

@ -1,7 +1,6 @@
use libc::*; use libc::*;
use std::ffi::CString; use std::ffi::CString;
#[link_args = "-Wl,-undefined,dynamic_lookup"]
extern { extern {
pub fn php_info_print_table_start(); pub fn php_info_print_table_start();
pub fn php_info_print_table_row(num_cols: c_int, ...) -> c_void; pub fn php_info_print_table_row(num_cols: c_int, ...) -> c_void;

View file

@ -1,6 +1,5 @@
#![allow(dead_code)] #![allow(dead_code)]
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(link_args)]
extern crate libc; extern crate libc;