How to do rpmbuild with specified Macro value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am newer for rpmbuild. I try to build the php-src.rpm with oci8 and mssql. php.sec is as below:
%define contentdir /var/www
%define with_oci8 %{?_with_oci8:1}%{!?_with_oci8:0}
%define with_mssql %{?_with_mssql:1}%{!?_with_mssql:0}
%define with_mhash %{?_with_mhash:1}%{!?_with_mhash:0}
 
how to do that? I try to use rpmbuild -ba --define "with_oci8 1" php.spec, but it doesn't work.
 
 
I also want to add LDFLAGS="-R/usr/local/oracle/product/9.2.0/lib/libclntsh.so.9.0" with configure. Where I should put it on php.spec.
 
Thanks
 
 
Linda
 
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux