mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
remove unneeded linker args to make it work on stable
This commit is contained in:
parent
4d469a7e25
commit
c5451b09db
4 changed files with 1 additions and 5 deletions
|
|
@ -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();'`
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue