Prompt gamma-ray neutron activation analysis (PGNAA) has been widely used for elemental analysis of bulk samples as it provides an on-line, rapid and non-destructive means of performing such analysis. The Monte Carlo Library Least-Squares (MCLLS) approach is one of the methods for quantitative analysis providing elemental weight fractions via an assumption that the total prompt gamma-ray spectrum is a linear combination of the contributions from the individual prompt gamma-ray spectra of the sample constituents. For the generation of prompt gamma-ray libraries of each constituent, a specific purpose Monte Carlo code system called Center for Engineering Applications of Radioisotopes Coincidence Prompt Gamma-Ray (CEARCPG) is utilized. In this work, the focus was on detecting and measuring chlorine impurity in crude oil samples, i.e. trace amounts of chlorine. A preliminary study investigating the feasibility of PGNAA method in conjunction with the MCLLS approach for measuring trace amounts of chlorine in oil samples was performed. For this purpose, an extended version of the MCLLS approach, the so-called MCLLSX approach, was proposed and applied for the quantitative analysis. The results presented in this paper prove the feasibility of the proposed approach.